I've had this issue for more than a year now. Sometimes it works, most of the time it doesn't. I can't be the only one experiencing this? The status bar says "Running" but even after half an hour, nothing happens on the Watch. Installing to my iPhone works just fine but as soon as I target the Apple Watch, it gets stuck.
Xcode says "Running .. on .. Apple Watch" all the time but never runs. Frustrating
same problem.
I've had this issue on and off since.... well, since there's been an Apple Watch ;-(
I find debugging an Apple Watch app very frustrasting as I can have a debug setup working as expected, then for an unknown reason, XCODE will take much longer than usual to compile and install the Apple Watch or sometimes cycle through "preparing device" & "installing [app name] watch..." for up to 20 mins (seriously, I use a timer). It will occasionally progress as expected or finally give up with an unhelpful "Unable to install [app name]" dialog.
First, if there are developers who have had dependable debugging experiences with XCODE + Apple Watch, would you please chime with words of encouragement?
Or if anyone has ideas of what to do other than restart XCODE, restart Apple Watch, restart iPhone in some magical order, please share your secret! ;-)
same here, it's very frustrating
I'm sad this seems to be an unsolved problem only Apple can clean up after themselves; I might be even sadder that they removed the "I have this issue too" tag from the forum.
March 2020 and the issue is still there.
Impossible to install a test app on the watch.
It works 1 time ... then doesn't work anymore during hours ...
Or you wait for ages with this message then suddenly it springs to life before ultimately showing a dialog saying "Unable to Install ... WatchKit App".
Oh for a cable to the watch, or at least the option to prefer WiFi over Bluetooth when both available, but that's another story.
Normally I would have XCode saying: "Running .. on .. Apple Watch", then it would sometimes say " Unable to install ..".
However, after I removed "Connect via Network" in Window -> Devices and Simulators -> Paired Device the error stopped.
On occasion the app gets installed on the watch, but never launches, and the debug session never starts.
Restarted everything. Macbook, Watch, Phone nothing works.
I'm wondering if it's maybe a faulty watch connection? For some reason I've also been unable to take screenshots on the watch, even if the option is enabled in the watch app. Pressing crown and button simultaniously will even make both watch and iPhone vibrate but there is no screenshot to be found in the camera roll of the iPhone. Does anybody else here experience this?
Oh how I love spending weeks developing an app only to be blocked from progress. UGH!
Is anyone at Apple actually monitoring this thread?
I had this issue but in the scenario where I deleted the app from watch and tried to run it again via Xcode. It said "running" but nothing happened. The solution was to go to "Watch" app on the iPhone and under the "Available Apps" I installed the app again. Hope this helps someone with the same context as I had. :)
Thank you for the workaround! It doesn't perfect but this is the best that I've found :)
Xcode says "Running ... WatchKit App on Apple Watch". But nothing happens on the Watch. I can manually install from the Watch app on my iPhone, but this way i can't debug the app running on the watch.
I have cleaned Xcode, fully reseted Apple Watch already 2 times.
Open the Apple Watch app on iOS
Scroll down until you see your app name, tap it and disable Show App on Apple Watch
Go back to Xcode and try to run the app on your Apple Watch again, the app should work now and allow you to use the debugger too.
Oddly enough, disabling WiFi both on the iPhone and watch seems to fix this for me (at least at the moment).
for reference:
https://stackoverflow.com/a/61053243/2064473
Same problem. Whenever it is working, and I then have to disconnect my phone and come back the next day and reconnect it, it stops working.
Same issue. I just got a new Air to replace my ageing laptop and hoped the issues would be gone, but nope, exactly the same problems. Xcode randomly decides that my watch is not available for development. With some luck it starts working again, but then I usually get the running but not really running problem instead. This time it was magically fixed by restarting Xcode after which it finally installed the app and managed to start it. What can possibly be so different with our setups compared to the Apple developers? I can't imagine they would put up with this every day.
I found this to work quite reliably when it inevitably stops working.
- Clean build. (Cmd + Shift + K)
- Go to window > Devices and Simulators
- Right click the device and unpair the iPhone
- Unplug the iPhone
- Quit Xcode
- Reopen Xcode
- Open Devices and Simulators again
- Replug iPhone + Unlock and Trust the computer
It seems to have a better chance of working after this