Xcode7 watchOS2 not debuggable on Simulator - debugging

My Watch OS2 app is running on Simulator okay but all the breakpoints I set in awakeWithContext, willActivate ... even when they have run and produced the result, the breakpoints are not hit.
In Debug Navigator, all I can see is "Installing and Waiting to Attach":
How to get these breakpoints hit for the Watch app?
The breakpoints for iPhone app hit normally when I run the iPhone app.
I have done many things - restart the Xcode, reset both Simulators, uninstall Watch app inside iPhone Simulator ... Nothing works, still "installing and waiting to attach"
Can anyone help? Thanks a lot.
P.S: Here is a relevant question.

I have installed Xcode 7 beta3, and this is not happening anymore. Now the breakpoints are hit.
Cheers!

Related

Nativescript iOS app not running on device

I'm encountering a strange issue and was hoping to get some insight. When I build my Nativescript app on a Mac, and open it in the iOS simulator, it works. When I "prepare" the iOS app and open it in xcode, and run it on a simulator, it works. When I run it to my plugged in device, it also works. But when I take that project to the Appstore, and download it from there, I only get the splash screen, and then the app exits. Can anyone please shed some light?
Okay so I managed to figure out what the issue is, so I hope this will help someone in future:
Even though I added "Push Notifications" as a Capability(Signing & Capabilities) in XCode, I had to add the "Background Modes" there as well, and then select "Remote Notifications".
This resolved the issue for me.

Xcode Run Apple Watch target results in Finished running app on Watch

I am trying to debug my watch app. I build and try to run as usual. It says Build succeeded, installing to watch etc. but then, instead of launching my app, it says Finished running app on watch. I've restarted Xcode, reinstalled my app on watch etc. but no avail.
What am I doing wrong?
I've also restarted my Mac, my iPhone and my Watch. It then worked.
I restarted everything and it still didn't work. However, after the restart when I first run the app I received an error: Device doesn’t support wireless sync. With this, after disabling the wifi on the watch, things went back to normal.
From my experience, restarting all devices (iPhone, watch, and mac) sometimes allows the app to build on the watch, but it is very frustrating and a long process for a "maybe."
Especially when I get the Device doesn't support wireless sync. the most consistent solve has been disabling wifi on both the watch and the iPhone. Also, have the iPhone connected directly to the computer with a genuine cord.
Good luck.
Also, if you were using the simulator, stop it and quit the simulator before trying to compile to the real device.
You just have to attach the Xcode debugger to the process which is running on the watch!
Xcode -> Debug -> Attach to Process > "name of your app watch extension"
After that Xcode displays "Running ... Extension on Apple Watch" and you can start debugging

XCode simulator won't run most recent code

I've been writing an app and I've released one version to the App Store. I've updated it slightly since then and have been playing with it on the Simulator. Unfortunately the Simulator has stopped reacting to the changes in my code. I know it's the simulators fault because if I run the app on my iPad the changes take effect.
I've tried resetting the simulator by going iOS Simulator -> Reset Content and Settings, I've tried quitting the Simulator and Xcode.
I have no clue why the Simulator is not working properly. It's just blatantly not updating.
Clean your project with command+shift+K.
Quit Xcode and clean ~/Library/Developer/Xcode/DerivedData manually. Remove all of its contents.

iPad won't run app built in Xcode & it finishes right after building

When I run my application on my iPad, the application opens then closes instantaneously after "build succeeded". I can run my app on iPhones without problems. My iPad iOS version is 8.1 and my Xcode is 6.2.
I get no error message just "CoreFoundation = 1141.140000" as output. I have searched the web up and down, but can't seem to get an answer. Does anybody know what's wrong?
The problem was the Ipad because it was jailbraked. After reinstalling it all worked fine.

BreakPoint are not working in ipad?

I have seen many question like this before but in my case it is not working only on iPad.
I have breakpoints that are not working in iPad but when I Run my application on Simulator or on the iPhone all the breaking point are working properly.
I have tried install SDK again, Delete the previous build, clean , clean all target & Load Symbols Lazily.
Try deleting the app from the iPad, restart, clean the project, run normaly, stop, activate breakpoints, and re-try.
Sometimes when Xcode is started and device is already connected to MAC, the device appears in XCode even if the device iOS version is higher than the XCode iOS version. At this time the break point doesn't work.

Resources