1

When I run my watch kit app (WatchOS 2) in Xcode 7, Swift, it installs and then finishes (stops). No error messages, it just stops. I've uninstalled and re-install both the IOS app and the watch app. No luck. Runs fine in the simulator. If I create a new empty project, same behavior. When I check the watch app on the watch, the new build is installed. It just doesn't run from Xcode so I can't get my debug messages. I am using the scheme for the IOS app and the Watch App. Is there anything to look for in the scheme config? I have also recently updated my provisioning profile and development certificates.

I've tried looking at similar questions, but so far they have not helped.

Xcode successfully builds my target, but does not run the product

Debug/Run in Xcode stopped working. Executable settings are wrong and can't be fixed too

and similar to:

"This app contains an app extension with an illegal bundle identifier" issue

Community
  • 1
  • 1
Tom
  • 175
  • 1
  • 12
  • Try updating to Xcode 7.1.1. It was released within the last day or so. – johnnieb Nov 11 '15 at 00:51
  • Thx but I updated and no change. – Tom Nov 11 '15 at 04:53
  • The UI runs on the main thread - there is no thing like stopping for an app unless u call exit() or the app crashes. What does the console say? – Helge Becker Nov 11 '15 at 17:02
  • Nothing on the console. – Tom Nov 11 '15 at 17:25
  • I've tried Xcode 7.2 and had the same results. Still stuck. – Tom Nov 12 '15 at 20:17
  • Yeah! I got it working. Although I do need to give it an assist by tapping on the watch icon once it is running. I shut down my MAC. Deleted the app from the watch and phone. Shut down the phone and watch. Restarting everything, and it worked. I had done all of this previously but not all at the same time. And it was the first time I also restarted my MAC. – Tom Nov 12 '15 at 21:13

2 Answers2

1

There's several people with this problem. I can't give you any tips for iOS 9.0 and XCode 7.1 (Besides, reseting everything and trying again). But, If you update to watchOS 2.1, iOS 9.2 and XCode 7.2, everything works.

JP Illanes
  • 3,665
  • 39
  • 56
  • Thanks. This problem ultimately went away but I'm not sure entirely why. I did all of the updates, deleted the app and restarted my computer and it started to work. – Tom Dec 18 '15 at 16:24
  • I'm experiencing this issue and I'm running watchOS 2.1, iOS 9.2 and Xcode 7.2. I'm using Obj-C though unlike the OP. – Kane Cheshire Jan 04 '16 at 23:26
  • Sorry, I can't help you more, this solved the issue to me, by the way, I have been using Obj-c all the time, and that's not an issue. – JP Illanes Jan 05 '16 at 08:50
  • I had the problem again. I 1) deleted and re-installed watchOS app 2) deleted and re-installed phone app 3) retarted Xcode 4) re-started the computer. 5) restarted the watch. None of this helped. Finally, I restarted the phone and it is working now. – Tom Feb 21 '16 at 02:08
0

With device connected, shut downing my iPhone and watch and then restarting fixes the problem.

Tom
  • 175
  • 1
  • 12