In Xcode I see (no paired Apple Watch) even though the watch is paired and the watch's UDID is registered

被刻印的时光 ゝ 提交于 2019-11-27 13:22:33

问题


My phone is listed as an ineligible target in Xcode and out to the side it says (no paired Apple Watch).

My Apple Watch is registered under iOS Devices. I can see the UDID. The watch has watchOS 2.0 installed and my iPhone 6 has iOS 9 installed. The iPhone pairs just fine with the watch and I can install apps.

I've tried rebooting both the watch and the phone. I've tried rebooting Xcode. I tried creating a new scheme in Xcode but it still shows (no paired Apple Watch). I can choose Product/Destination and the app will show up on the phone, it just won't install the watch app...just sits there saying "Installing...".


回答1:


I had paired my watch with a new phone and run in to this problem. I removed all files in ~/Library/Developer/Xcode/watchOS DeviceSupport/ and it solved it!




回答2:


What worked for me is to go to the WatchKit App target and update the Team with the proper account. Once I did that, my device showed as eligible.




回答3:


2019: New iPhone, even worse. Now, every single component in my development has changed since 2017 and I'm still stuck targeting the simulator with every build. Apple, you deserve losing 250 billion in market value.

2018 II: nothing works for me anymore. Contacted Apple loads of times and Apple Watch seems to have moved to Playground's neighborhood as it's just loading/running but never really running. Bought a second Mac, new project, nothing works. Sad.

2018: The last couple of days I have been really successful doing the following:

On your iPhone:

  • turn off wifi
  • turn off bluetooth
  • turn on wifi
  • turn on bluetooth

On your Watch:

  • turn on flight mode
  • deactivate flight mode

Most of the times it didn't take longer than 30 seconds to get the connection back on track. I think it's the "Watch flight mode"-thing but I never change a (somewhat) running system so this will be my procedure from now on. My 2017-reply still seems to be of help to some people:

2017: If it SOMETIMES shows, and often doesn't, it might be due to the fact that you closed iTunes

I noticed what I often did after reconnecting: closing iTunes. Immediately, the watch turned to be "unpaired". Reconnecting the USB cable but leaving iTunes open has helped me since.




回答4:


It seems that you need to tap on the "Trust this computer" message on Apple Watch. This solved my problem. Also check if XCode displays the message "Indexing..." or "Loading symbols...": you need to wait until the operation is over.




回答5:


It looks like a bug in Xcode! Go to ~/Library/Developer/Xcode/watchOS DeviceSupport/ and create a folder named "Watch1,2 2.0 (build number)" and for 'build number' use your watchOS build number. Inside this folder create another folder named "Symbols".

So for the latest build: ~/Library/Developer/Xcode/watchOS DeviceSupport/Watch1,2 2.0 (13S5305d)/Symbols.

Maybe clean & restart Xcode.




回答6:


For me it was an issue of trusting the computer from the watch. I had to reboot my watch to get the "trust this computer" request.




回答7:


Open the camera companion app on the watch. For me this works. Seems like the app starts a phone connection.




回答8:


In my case I believe it was because I had Connect via network enabled for the iPhone that's paired with my new watch.

Upon disabling the wireless connect feature, then connecting the iPhone to my mac via cable, the watch appeared in the Devices list.

After getting the UUID to register with the Developer Center I re-enabled Connect via Network and the watch was no longer listed on the Devices screen. When I connect the phone via cable, however, the watch info appears.

So if you're using wireless connect, try just plugging the device in via cable and hopefully you'll see your watch in the list. Good luck!




回答9:


I had to delete my Apple ID from the Accounts tab in Xcode preferences and then re-add it.




回答10:


What worked for me is just waiting for about a minute. There was no progress bar in Xcode, just wait.




回答11:


For me helped open iTunes at the MAC and leave it open.

Xcode 9.4.1




回答12:


I have the exact same setup and had the same problem. What seemed to work for me was just unpairing and pairing the watch again. Then Trust this computer on the watch and Xcode started to list it in the menu.

It seems that I updated the watchOS2 beta 5 on top of 1.0.1 which was paired earlier and it just needed to be re-set for watchOS2.




回答13:


What worked for me was to open Xcode's Projects window and click the Delete button next to the Derived Data line for the currently open project. After that, the target automatically switched to show [My iPhone Name] + [My Watch Name].

My setup: Xcode 7, iOS 9 (public release), and watchOS 2 beta.




回答14:


Open Watch app on device, scroll down to your app, and make sure to enable show app on apple watch




回答15:


Setting Correct Provisioning profiles | Certificates | Team, then restarting Xcode worked for me.




回答16:


You must have connected your Apple Watch with you iPhone by bluetooth, wifi connection won´t work for testing...




回答17:


I really struggled with this problem but this helped me:

Fix steps :

  1. Unpair my watch
  2. Reboot both iPhone and apple watch
  3. Pair them again,and setup my watch as a new one
  4. Plug (unplug first) iPhone to Mac
  5. On apple watch, say Trust the computer when it asks
  6. Unplug and plug again
  7. Close and open XCode
  8. Open the project and wait a few seconds



回答18:


I may have had a breakthrough....I turned off WIFI on my Mac and it instantly found the watch 😱




回答19:


Check the phone is connected to the same wifi network as the computer.

I've just spent a few days struggling with this, trying the solutions above. Switched networks, waited a minute, now it works again. Gah.

I have four wifi SSIDs in my home (old house, thick walls, one router won't cover it properly) and it turned out the computer was choosing one, and the phone another.




回答20:


This worked for me 1. Quit Xcode. 2. Disconnect iPhone 3. Remove cache files at /Users//Library/Developer/Xcode 4. Run Xcode. 5. Connect iPhone again 6. Xcode will start to download the symbol file




回答21:


Just reconnect my iPhone to my Mac is solved my problem. When i reconnect my iPhone, xcode installed itself missed symbols automatically.




回答22:


I had a similar issue where Xcode was not detecting my paired watch. Somehow, the beta provisioning profile had managed to get installed onto my phone and for some reason Xcode could not detect the paired watch. As soon as I deleted the provisioning profile, Xcode started to pick up the paired watch.




回答23:


Creating a new watchOS project lead to download of symbols to resume and finish. I unplugged the iPhone before "Processing symbol files" operation was finished. So Apple Watch never showed up again. XCode 9 (beta 4). iOS 10 (beta 4). watchOS 2.2.2.




回答24:


I just waited several minutes and then - it worked by itself.

WatchOS 4.1, XCODE 9.2.




回答25:


The solution that worked for me with XCode 10.0: trash the whole Xcode folder in ~/Library/Developer/Xcode, removing only the watchOS DeviceSupport was not enough




回答26:


New update to this issue. I have recently buy the ray wenderlich book for Watch OS and I have had this problem.

After testing a lot of things, and before delete any files, my working solution is this:

On MAC with Xcode open and with the issue scheme loaded. iPhone plugged in and watch turned on too.

1) On MAC turn off wifi 2) On MAC turn on wifi 3) On MAC turn off bluetooth 4) On MAC turn on bluetooth

I know this solution is above, but is the only way it has worked for me. Hope it helps to any dev too.



来源:https://stackoverflow.com/questions/30792520/in-xcode-i-see-no-paired-apple-watch-even-though-the-watch-is-paired-and-the-w

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!