11

Originally, I thought this was an issue of the code I was writing, but I've just downloaded four or five WatchKit projects even one from Apple. All of them, fail to load.

I've uninstalled Xcode, reinstalled it and still nothing. Any one else experiencing the same issue? Workarounds? Solutions?

screenshot

You can see in the screenshot above what the loading screen looks like.

Iulian Onofrei
  • 9,188
  • 10
  • 67
  • 113
YichenBman
  • 5,011
  • 8
  • 46
  • 65

4 Answers4

15

I am already bloody sick of official Xcode 6.2 & WatchKit Simulator. It is so super flaky. Here's another fun fact, if there is some constraint in your storyboard that the watchKit doesn't like then it will also keep looping in an infinite loop without letting anyone know why its doing that. What you need to do is

  • Drag and drop & add another WKInterfaceController to your storyboard
  • Make that one your main by dragging the arrow on it
  • Delete the old watchKit app controller
  • Now start adding elements one by one and keep testing till it doesn't work any more on the simulator (infinite spin of death)
  • Try clean and build and even after that it keep the spin ball of death then the last change you made to the storyboard is what it didn't like.

I had to spend hours debugging this crap.

UPDATE: If the above steps don't work for you then try this

  • launch Xcode
  • compile and build & launch iPhone simulator
  • Now don't shutdown the simulator instead do Xcode --> Product --> Stop
  • This will keep the simulator running but swill top the iphone app running on it
  • Do Build --> Clean
  • Do build again
  • Now launch watchkit simulator
  • If you need to stop and start always do Xcode --> Product --> Stop
  • These steps have always worked for me while making watchkit apps
idmean
  • 14,540
  • 9
  • 54
  • 83
Sam B
  • 27,273
  • 15
  • 84
  • 121
  • I would suggest to try the updated steps before the first ones. It worked for me and it's a much simpler fix than testing every single one of your elements. – Romain Braun May 12 '15 at 18:28
8

I experienced this a lot with Xcode 6.2 beta 1. I only got this a few times with beta 2 and 3. Here is what I would do to get it to work.

  1. Reset the simulator via menu->IOS Simulator->Reset Content and Settings…
  2. Quit the simulator
  3. Clean the Xcode project
  4. Restart Xcode
  5. Build and run the iOS App (not the Watch App)
  6. Stop the iOS App
  7. Build and run the Watch App

This would generally fix the app just spinning for me. With beta 1 sometimes I would have to do this two or three times to get it up and running. Once I had it running, it would usually not do it again for a while. With beta 2 and 3 I only saw this a few times.

Aaron Brager
  • 65,323
  • 19
  • 161
  • 287
Stephen Johnson
  • 5,293
  • 1
  • 23
  • 37
  • Well this worked once in Xcode 6.2. Then I tried another app and spinner returned and isn't going away, no matter how many times I reset and quit. So frustrating. – Pahnev Apr 15 '15 at 02:17
  • Now I don't see debug logs not breakpoints... Any help there? – Idan Apr 15 '15 at 20:52
3

I always get this issue with Xcode 6.3. I've spent a lot of time on resetting caches in simulator, cleaning/rebuilding projects and so on. But only one thing always helps me. I just add new blank interface controller on my storyboard and create sequence to it from my main controller.

screenshot

And when I get this infinite loading of my app, I just swipe to my blank controller and than back to my main controller. After that everything works fine.

Ilya Dmitriev
  • 1,680
  • 1
  • 16
  • 22
  • ...and I don't get this issue on macbook pro mid 2014. Looks like it depends of hardware. So I run into trouble only when I work on mac air mid 2012. – Ilya Dmitriev May 01 '15 at 09:12
  • Bizarre. I tried this trick with a physical watch that wasn't loading my app, after adding a new InterfaceController it loaded up. – Joe May 23 '15 at 16:28
0

In my case nothing here proposed helped. I had to select the module name in addition to the Custom Class name:

enter image description here

This was as a result after renaming the watch kit app. Maybe this is helpful for someone else, since the "spinning wheel of death" itself doesn't give much insight :-/ .

Dirk
  • 1,064
  • 1
  • 11
  • 13