Xcode 13:构建因“iPhone 正忙:让 Apple Watch 准备好开发”而挂起

Lum*_*ode 43 xcode watchos

问题:构建挂起,显示“iPhone 正忙:让 Apple Watch 做好开发准备”

更多事实:

  • iOS 14.8
  • iPhone 8
  • watchOS 7.6.2
  • Xcode 13
  • Apple Watch Series 3 + 蜂窝网络(42 毫米)

有谁知道这个问题的解决方案?

很多开发者都面临着同样的问题:

Ton*_*ado 28

我已经为此苦苦挣扎了一段时间了。如果您不需要 Apple Watch,您也可以在配置正确的情况下打开飞行模式,而不是完全关闭它。

\n

在手表上,转到Settings App\xe2\x86\x92 Airplane Mode。确保WIFIBluetooth开关均已关闭!

\n

当蓝牙开关打开时,即使您的手表处于飞行模式并且手机上的蓝牙已从控制中心关闭,仍会建立连接。我花了一些时间才弄清楚这一点......

\n

更新:蓝牙设置似乎在一段时间后再次自动打开!不知道为什么... \xe2\x80\x8d\xe2\x99\x82\xef\xb8\x8f 请记住这一点,如果飞行模式无法解决您的问题,请再次检查设置。

\n

使用颤动?

\n

跑步时flutter doctor,它会给您一个明确的提示,表明您的手表导致了问题。

\n

当尝试从 Android Studio 构建应用程序时,您可能会在日志中找到以下消息:

\n
The requested device could not be found because no available devices matched the request.\n\nAvailable destinations for the "dev" scheme:\n[list of devices]\n\nCould not build the precompiled application for the device.\n\nBuilding a deployable iOS app requires a selected Development Team with a Provisioning Profile. Please ensure that a Development Team is selected by:\n[instructions how to set the development team]\n\nIneligible destinations for the "dev" scheme:\n[list of devices]\n
Run Code Online (Sandbox Code Playgroud)\n

我把这些消息放在这里供人们谷歌搜索。如果您有 Apple Watch,请运行flutter doctor检查这是否是根本原因。

\n


Sas*_*ush 16

这对我有用:

  1. 从 iPhone 的“设置”->“蓝牙”中关闭蓝牙(不要从控制中心将其关闭
  2. 退出 Xcode
  3. 再次启动
  4. 构建并运行

  • 关闭手表上的蓝牙最适合我。我宁愿让 iPhone BT 保持开启状态。我不必退出 Xcode (13.3),只需关闭 Watch 上的蓝牙并再次构建即可。 (2认同)

小智 5

解决办法是:

  • 等待5-20分钟
  • 打开您的 iPhone 和 Apple Watch


Edw*_*ong 5

我也面临这个问题。这是因为最新的xcode只支持iOS 15.2 sdk,但我手机的iOS版本是15.3。因此,xcode 正在从您的手机下载 iOS 15.3 sdk,这就是为什么需要时间(我知道消息并没有这么说)

不过,我做了一些测试,它对我有用。

来源: https: //developer.apple.com/forums/thread/691452 ?answerId=704424022#704424022