ios 在 Xcode 中,即使手表已配对并且手表的 UDID 已注册,我也看到(未配对的 Apple Watch)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30792520/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 06:23:10  来源:igfitidea点击:

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

iosiphonexcodeapple-watchbeta

提问by dmin7b5

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

我的手机ineligible target在 Xcode 中被列为一个,在它的侧面显示 ( 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.

我的 Apple Watch 已在 iOS 设备下注册。我可以看到UDID。手表安装了 watchOS 2.0,我的 iPhone 6 安装了 iOS 9。iPhone 与手表搭配得很好,我可以安装应用程序。

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...".

我试过重启手表和手机。我试过重新启动Xcode。我尝试在 Xcode 中创建一个新方案,但它仍然显示(没有配对的 Apple Watch)。我可以选择产品/目的地,应用程序将显示在手机上,它只是不会安装手表应用程序......只是坐在那里说“正在安装......”。

回答by jede

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!

我将手表与新手机配对并遇到了这个问题。我删除了所有文件~/Library/Developer/Xcode/watchOS DeviceSupport/并解决了它!

回答by eCeleritas

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.

对我有用的是转到 WatchKit App 目标并使用正确的帐户更新团队。一旦我这样做了,我的设备就会显示为合格。

回答by user2875404

2020: At this point I can't even get WCSession to send data on the Simulators anymore.Message from Watch to iPhone with replyHandlerworks, message from iPhone to Watch fails with WCErrorCodeWatchAppNotInstalled. Every day starts with rebooting numerous times and deleting and setting up new iPhone + Watch combinations. Tried on a freshly installed macOS with my friend's devices and of course no luck. But it's clearly my fault. Submitting a bug report doesn't do anything as they only keep telling you that everything is working on their end and they will close this ticket now. I only wanted to help.

2020:此时我什至无法再让 WCSession 在模拟器上发送数据。从 Watch 到 iPhone 的replyHandler消息与作品,从 iPhone 到 Watch 的消息因 WCErrorCodeWatchAppNotInstalled 而失败。每天都从重启无数次以及删除和设置新的 iPhone + Watch 组合开始。用我朋友的设备尝试了新安装的 macOS,当然没有运气。但这显然是我的错。提交错误报告不会做任何事情,因为他们只是不断告诉您一切都在他们的最后工作,他们现在将关闭此票证。我只是想帮忙。

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, why?

2019 年:新 iPhone,甚至更糟。现在,自 2017 年以来,我开发中的每个组件都发生了变化,而且每次构建时我仍然坚持以模拟器为目标。苹果,为什么?

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 II:没有什么对我有用了。与 Apple 联系了很多次,Apple Watch 似乎已经搬到了Playground附近,因为它只是在加载/运行,但从未真正运行过。买了第二台 Mac,新项目,没有任何效果。伤心。

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

2018 年:过去几天我在以下方面做得非常成功:

On your iPhone:

在您的 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:

大多数情况下,连接恢复正常所需的时间不会超过 30 秒。我认为这是“观察飞行模式”——但我从不改变(有点)正在运行的系统,所以从现在开始这将是我的程序。我 2017 年的回复似乎仍然对某些人有帮助:

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

2017 年:如果它有时显示,并且经常不显示,则可能是由于您关闭了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.

我注意到重新连接后我经常做的事情:关闭 iTunes。随即,手表转为“未配对”。从那以后,重新连接 USB 电缆但让 iTunes 保持打开状态对我有所帮助。

回答by Berni

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

在手表上打开相机伴侣应用程序。对我来说这是有效的。该应用程序似乎启动了电话连接。

回答by Bogdan

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.

似乎您需要点击 Apple Watch 上的“信任这台电脑”消息。这解决了我的问题。还要检查 XCode 是否显示消息“索引...”或“正在加载符号...”:您需要等到操作结束。

回答by Eduard Klinger

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".

它看起来像是 Xcode 中的一个错误!转到~/Library/Developer/Xcode/watchOS DeviceSupport/并创建一个名为“Watch1,2 2.0(内部版本号)”的文件夹,对于“内部版本号”,请使用您的 watchOS 内部版本号。在此文件夹中创建另一个名为“Symbols”的文件夹。

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

因此,对于最新版本:~/Library/Developer/Xcode/watchOS DeviceSupport/Watch1,2 2.0 (13S5305d)/Symbols

Maybe clean & restart Xcode.

也许清理并重新启动Xcode。

回答by yspreen

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.

对我来说,这是一个从手表信任计算机的问题。我不得不重新启动我的手表才能获得“信任这台计算机”的请求。

回答by pedanticmoose

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

就我而言,我相信这是因为我为与我的新手表配对的 iPhone 启用了通过网络连接

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

禁用无线连接功能,然后通过电缆将 iPhone 连接到我的 mac,手表出现在设备列表中。

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

在获得 UUID 以在开发人员中心注册后,我重新启用了通过网络连接,并且手表不再列在设备屏幕上。但是,当我通过电缆连接手机时,会出现手表信息。

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!

因此,如果您使用无线连接,请尝试通过电缆将设备插入,希望您能在列表中看到您的手表。祝你好运!

回答by Ing. Ron

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

对我来说,帮助在 MAC 上打开 iTunes 并保持打开状态。

Xcode 9.4.1

Xcode 9.4.1

回答by Ric Santos

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

我不得不从 Xcode 首选项的“帐户”选项卡中删除我的 Apple ID,然后重新添加它。