Cannot debug widget in a watch target using Xcode 14.1 on Apple Watch simulator or real Apple Watch device.
Debug> Attach to Process does not work for me.
Cannot debug widget in a watch target using Xcode 14.1 on Apple Watch simulator or real Apple Watch device.
Debug> Attach to Process does not work for me.
Xcode 14.1 known issue:
Xcode 14.1 release notes seems to mention a known issue
After Running a widget extension, users will need to manually start the debugging session with Debug -> Attach to Process. (99285608)
Approach (works on simulator and device)
Steps
Debug
> Attach to Process
> Select your widget target nameNote:
Now your breakpoints should work as expected and you can debug