Xcode 7.0 Beta 无法在 Apple Watch 上启动 watchOS 2 应用程序 [英] Xcode 7.0 Beta fails to launch a watchOS 2 App on Apple Watch

查看:31
本文介绍了Xcode 7.0 Beta 无法在 Apple Watch 上启动 watchOS 2 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试了一个公共示例代码项目和我自己的项目.观察 watchOS 1 没问题.

Tried a public sample code project and my own project. Observe no problem with watchOS 1.

watchOS 2 App在真实Apple Watch和模拟器上安装运行成功,但不支持通过Xcode在设备上启动app的调试模式.

watchOS 2 App installs and operates successfully on the real Apple Watch and the simulator, but it won't support the debug mode launching the app on the device by Xcode.

尝试允许系统创建 Provisioning 文件并手动创建用于开发模式的 Provisioning 文件.

Tried to allow the system to create the Provisioning files and manually create the Provisioning files for the development mode.

在 10.10、10.11 上测试.

Test on 10.10, 10.11.

重现步骤:

  1. 在构建设置、watchOS 2 环境等方面设置配置文件.

  1. Set up the Provisioning files on build settings, watchOS 2 environment and etc.

转到 Xcode 7.0 测试版左上角的方案,然后选择 iPhone 和 Apple Watch 设备.

Go to the scheme on the left top of the Xcode 7.0 beta and choose the iPhone and Apple Watch device.

等等... Apple Watch 上似乎安装了 WatchKit 应用,但屏幕仍然空白.

Wait... the WatchKit App seems to be installed on Apple Watch, but the screen remains blank.

Xcode 上的 Play 按钮在点击后被激活.等待 1 分钟.它将在没有任何警告的情况下关闭.

The Play button on the Xcode is activated after the click. Wait 1 minute. It will be turned off without any warning.

预期结果:

WatchKit 应用程序将在 Apple Watch 上启动.

The WatchKit App will be launched on the Apple Watch.

实际结果:

屏幕保持空白.

版本:

watchOS 2 + iOS 9(2015 年 6 月 23 日发布)

watchOS 2 + iOS 9 (released on June 23, 2015)

这里有一个类似的案例,但在这种情况下没有错误消息,将设备直接插入 Mac 并重新启动所有设备都无法解决问题.

Here is a similar case, but in this case there is no error message and plugging the devices directly to a Mac and rebooting all devices won't solve it.

谢谢

推荐答案

Xcode 7.0 Beta 3 发布说明

Release note of Xcode 7.0 Beta 3

您在部署时可能会遇到安装错误和问题应用到 watchOS 2 设备或手表模拟器.

You may experience installation errors and issues when deploying your app to a watchOS 2 device or Watch simulator.

解决方法:尝试以下方法.

Workaround: Try the following methods.

  1. 如果出现列出某些 FBS 错误的错误表,请再次运行.

  1. If an error sheet listing some FBS error shows up, just run again.

删除 iOS 应用并再次运行.

Delete the iOS app an run again.

确保在适用于设备的 Apple Watch 应用中选择了在 Apple Watch 上显示应用".

Ensure that the ‘Show App on Apple Watch’ is selected in the Apple Watch app for device.

重启 Xcode、手表和 iPhone 设备/模拟器.

Restart Xcode, the Watch and the iPhone devices/simulators.

重置模拟器和模拟器(观看).要重置模拟器,请选择菜单,模拟器 ->休息内容和设置.然后退出运行时让 Xcode 重新启动它们.

Reset the Simulator and Simulator (Watch). To reset the simulators, select the menu, Simulator -> Rest Content and Settings. Then quit them and let Xcode restart them when you Run.

如有必要,请在尝试上述步骤后重新启动计算机.

Restart your computer after trying the steps above if necessary.

手表模拟器可能会在重置或重启后停止接受输入.如果它不响应主页按钮,退出并重新启动手表模拟器应用.(21135676)

The Watch simulator may stop taking input after a reset or reboot. If it doesn’t respond to the Home button, quit and restart the Watch simulator application. (21135676)

• 如果手表从未显示信任对话框或不信任是然后当您尝试构建 & 时选择在手表上运行,调试导航器将保持为空并且不显示 '(e) com.xxx.xxx 等待附加'项目.解决方法:断开 iPhone 与 Mac 的连接,然后重新连接它应该会导致信任提示出现在 Apple观看.

• If the watch never displayed the trust dialog or don't trust was selected then when you try to Build & Run on the watch, the Debug Navigator will remain empty and not show the '(e) com.xxx.xxx waiting to attach' item. Workaround: Disconnecting the iPhone from the Mac and reconnecting it should cause the trust prompt to appear on the Apple Watch.

如果仍然没有显示,则重新启动 Apple Watch.最后的解决方法将取消 Apple Watch 的配对,然后重新与 iPhone 配对.

If it still doesn't show then reboot the Apple Watch. A last workaround would be to un-pair the Apple Watch and re-do the pairing with the iPhone.

请参阅此处的完整详细信息

它没有直接解决问题,至少我知道他们正在解决类似的问题,可能会在未来的稳定版本中修复它.(上面的方法都试过了,大多没能解决这个问题)

It didn't address the problem directly, at least I know they are working on the similar issues, probably will fix it in the future stable release. (Tried all the methods above and failed mostly to resolve this issue)

这篇关于Xcode 7.0 Beta 无法在 Apple Watch 上启动 watchOS 2 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆