Reputation: 9527
I have installed new XCode and now I have problem debugging my todays extension (in simulator or device - not working in both of them). Steps from Apple documentation are not working, extension is always hanging on "Waiting to attach". I have also tried this: How to debug iOS 8 extensions with NSLog?, but also with no luck.
Upvotes: 1
Views: 362
Reputation: 9527
I have found some kind of a solution for device.
For me this worked in 80% of cases, If not, lock device again and wait a little :-), then try again
Upvotes: 0
Reputation: 70936
I had the same problem, and in my case it was because I had configured Xcode to use a custom location for its "derived data" folder. Custom locations are supported, but a bug currently means that using one breaks debugging with app extensions. Xcode knows where your breakpoints are but thinks it hasn't loaded any code that matches them yet.
For me the fix was to go to Xcode preferences --> Locations, and set the "derived data" location to "default".
Upvotes: 1