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

查看:235
本文介绍了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在设备上启动该应用程序的调试模式.

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.

试图允许系统创建配置文件并为开发模式手动创建配置文件.

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环境等上设置Provisioning文件.

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

转到Xcode 7.0 beta左上方的方案,然后选择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.

等待... WatchKit App似乎已安装在Apple Watch上,但屏幕仍然空白.

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

单击后,将激活Xcode上的播放"按钮.等待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设备或Watch模拟器.

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,Watch和iPhone设备/模拟器.

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

重置模拟器和模拟器(手表).要重置模拟器,请选择菜单Simulator->.其余内容和设置.然后退出 它们,并让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.

在重置或重新启动后,Watch模拟器可能会停止接受输入.如果 它不响应主页"按钮,退出并重新启动手表 模拟器应用程序. (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天全站免登陆