ChatGPT解决这个技术问题 Extra ChatGPT

iOS:Watch Kit 配对设备不可用于开发

I can't run my Apple Watch application in XCode. My phone+watch is listed as a "Unavailable Device" and says "paired device unavailable for development". When I try to launch the app it says the same thing.

How can I resolve this?

I'm using XCode 7.1, iOS 9.0, WatchOS 2.0.1.

There was a similar question that was deleted, but it was still the top Google hit so I'm asking this again. I'm trying to update to iOS9.1 now and I'll see if that helps.

p
possen

This is what worked for me, and it is a lot easier and faster than un-pairing so I would try this first. From the Clock Face Swipe up, and click on the Ping iPhone button. After it makes a sound, go back in Xcode it should change no longer be unpaired or unavailable for development.


This worked for me. Plus I also quit and launched Xcode 7.3.1 and then it showed the paired Apple Watch was available for development.
This and a lot of messing around, quitting xcode and relaunching it. Just as I was about to try removing the derived data folder, it worked.
This worked for me ... I first repaired which removed the "unavailable for development" warning, but Xcode then complained "no paired device" ... pinging fixed everything, though made a loud sound even when iPhone was in silent mode :/ ... sorry Starbucks peeps lol
Worked for me as well (Xcode 10, iOS 12.0.1, watchOS 5). Thanks!
OMG didn't believe it was going to work. But it did! (Xcode 11, iOS 13.1, watchOS 6)
W
Will

I had the same issue on iOS 9.1 + WatchOS 2.01 that XCode 7.1 kept saying "paired device not available for development". Here is what I did to solve it finally, not quite sure which step is critical -

Unpair my watch Reboot both iPhone and apple watch Pair them again, and setup my watch as a new one Plug (unplug first) iPhone to Mac On apple watch, say Trust the computer when it asks Unplug and plug again

Bang! My apple watch is well recognized for development. Hope it helps.


It has been a long journey, but finally worked following the steps.
Had the same problem; I think I tapped "Don't trust" by accident the first time. Setting up the watch as a "new" one presented the modal again, allowed me to trust my Mac, and therefore use the device for development.
this sounds like overkill :o(
I didn't have to do all this (pairing and repairing the watch in particular is a pretty time-intensive process). Closing and restarting Xcode was all I needed.
This is just driving me nuts !! Did every step from whole internet and Google servers around Milk Way. It just doesn't work !!!
B
Bill

I can confirm having this too by using the following configuration: OS X, Xcode7.2 beta, iPhone5s with iOS9.2 and WatchOS 2.1

I unplugged the iphone again, closed and restarted Xcode and plugged in the iPhone again - than it worked fine!


Worked for me: Unplug iDevice-> Quit XCode-> Restart XCode -> Plug in iDevice
Worked for me in XCode 12.6.1: I connected iPhone to laptop, trusted the computer, but got the message that the Watch device was unavailable for development. Unplugged the phone from laptop and plugged it back in, and it was available, but the build failed because I needed to select a development team: Select main project in Project Navigator, then, in the editor that appears, select each relevant target and set the development team. Also needed to do it for the project itself under the All tab. Then the app installed on the watch.
Y
Yizhar

Rebooting the Apple Watch worked for me, after that it displays the 'trust this computer' message which is required to debug the watch with XCODE.


A
Alison Borba

I just restart the Xcode to solve the problem.


Y
Yizhar

Deleting the 'famous' XCODE Derived Data folder did it for me.

Steps for newbies:

Close XCODE. Delete the Derived Data folder, to find it's location go in XCODE to upper menu: XCODE -> Preferences -> Locations: Here click on the Derived Data arrow. Reopen XCODE.

Tested on XCODE8.0.


k
khheng

Go to Window--> Device and Simulator , Unpair device and Disconnect from cable and connect back works for me.


R
Rodrigo Recio

It just happened to me and I fixed it by

quitting Xcode putting the Watch on the charger open Xcode select the Watch App Target select the iPhone paired to watch as the device to run Wait until '(paired device unavailable for development)' or '(no paired Apple Watch)' disappears from device description at the Xcode toolbar Run!


m
mmremann

I followed the steps above repeatedly and still got the same issue. What I found fixed the issue was not signing into iCloud and only using Messages instead. Once I did that it worked beautifully. Thank you.


What are the "steps above"? The answer of @Will? Consider make a comment to that answer.
Yes, @Will's answer helped. I would have but I do not have enough reputation points.
Disabled / turned off all iCloud settings, except keychain & Find my iPhone, and then xcode recognized the watch and was able to debug
B
Brad K.

Deleting everything in ~/Library/Developer/Xcode/watchOS DeviceSupport/ worked for me.


k
kees

I had the same issue with watchOS 2.1. Unplugging my phone restarting Xcode and plugin in my phone did the trick. I suggest trying that before you re-pairing phone and watch


e
emleeh

I had issues with this too, using Xcode Beta 7.3 version 3. I updated to Xcode Beta 7.3 version 5 and it's working fine. Hope this helps!


B
Ben

I met this problem as well.

What I do is quite simple, turn off bluetooth from iPhone and turn on, wait till apple watch got connected again.

Then fire up the app.


R
RyanTCB

I had to unlock the watch with my passcode.

If already unlocked, lock it then unlock.


R
Roger Zhang

I had issues with this too with Xcode 10.1 and Watch OS 5.x Really need delete Xcode Derived data files, and reboot Watch, and click 'Trust' button in Watch for debug.


A
Alessio Campanelli

my problem was having to authorize the computer from the Apple Watch... (with last release Xcode 10.2)


R
Rich

For me the only thing that worked was unpairing the watch from the iPhone and setting it up as a new watch (restore from backp didn't work).

I tried unpairing in Xcode, deleting derived/cached data, platform support, restarting Xcode, all combinations of unplugging and restarting! Nothing worked.

Whether it was this nuclear action, or the simple fact that it then goes through the re-authorisation process between the Mac + Watch, we'll never know.

What I do know is that at times Xcode can be shockingly unstable.


Worked for me as well. The important step was to set up the watch as a new one, instead of restoring it from backup.
u
user487588

This happened to me over the last few days. Xcode was being extremely unstable (sometimes, in the Build Scheme, it would say "paired watch unavailable for development", other times it would say "null" when referring to the watch, other times it would work!). I did all of the steps below, but the inconsistency was not solved:

Unpair my watch, Reboot both iPhone and apple watch, Pair them again, and setup my watch as a new one, Plug (unplug first) iPhone to Mac, On apple watch, say Trust the computer when it asks, Unplug and plug again

Eventually, the I realised a slightly newer version of Mojave (10.14.5), and a slightly newer version of iOS (12.3.1) had been released. After I made these quick updates, XCode appears to be much more stable now.


a
akiraspeirs

I updated my phone to iOS9.1 and it's working now.


B
Bill Chan

In my case I disable the passcode of apple watch, then DerivedData and restart Xcode solves the issue.


v
vaughan

I got rid of the message after re-pairing which took about 30+ mins.

However, it could have been that restarting the watch would have fixed it so try that.

Also try deleting the DerviedData.

After I got the message to go away, the app wouldn't install on the phone. I had previously created a WatchKit project from an AppCode template. After creating a new project from XCode, it started to work.


s
saurabh

For me, I had to Trust this Mac from my Watch.

Then I cleared the derived data, restarted XCode and it worked. Didn't have to restart phone or Watch.


S
Stephan Rasshofer

Today I had the same issue. My phone was availbale for development but the watch was unavailable. I restarted the iphone, watch and mac. After the restart of all devices I got the notification on the watch to trust the mac and I was able to start my application on the watch and iphone.


o
oskarko

In my case, I just needed to unplug and plug my iPhone in again.