Hi,
I'm trying to develop an iPhone app (it's not using Apple Watch at all). I just got an Apple watch and this made it almost impossible to continue developing the app.
I'm using the CLI tools for the development (this is an Ionic app), but also tried to run the app on my iPhone via the Xcode gui.
Here is what happens when I try to run it via CLI:
This is the command that I'm using:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace App.xcworkspace -scheme App -configuration Debug -destination id=0a151dxxxxxxxxxxae82af -derivedDataPath /Users/zolcsi/www/notaeFrontend/ios/DerivedData/0a151dxxxxxxxxxxae82af
(this command is auto-generated)
The error that I get:
{ id:0a151dxxxxxxxxxxae82af }
The requested device could not be found because no available devices matched the request.
Available destinations for the "App" scheme:
{ platform:iOS Simulator, id:73955EE4-557B-4054-9D37-486FFA4BA8CC, OS:15.2, name:iPad (9th generation) }
LOADS OF OTHER SIMULATORS HERE....
Ineligible destinations for the "App" scheme:
{ platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }
{ platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any
iOS Simulator Device }
{ platform:iOS, id:0a151dxxxxxxxxxxae82af, name:Zoli, error:Device is busy (Preparing the
watch for development via Zoli) }
After that if I open Xcode and check the devices window I can see my phone with some errors and warnings:
However I am able to run the app at this point from the GUI, but not from the CLI. And if I restart Xcode, it will try to look for and install the Device Support files again (without success), which takes an other 5 minutes or so. I checked the watchOS device support folder, but I found only 8.3 there, but my watch is running 8.4.2.
I tried updating everything, restarting everything but nothing seems to help.
Any help would be appreciated. Thanks