如何避免错误“错误启动”AppName'WatchKit Extension"当试图在实际Apple Watch上构建和运行WatchKit Extension时? [英] How can I avoid the error "Error Launching 'AppName' WatchKit Extension" when trying to build and run a WatchKit Extension on an actual Apple Watch?

查看:175
本文介绍了如何避免错误“错误启动”AppName'WatchKit Extension"当试图在实际Apple Watch上构建和运行WatchKit Extension时?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在真正的Apple Watch上构建并运行WatchKit扩展时,我有时会收到以下错误消息:

When I try to build and run a WatchKit extension on my real Apple Watch, I sometimes get the following error message:

我已经尝试为iPhone构建父应用程序,然后再为我的WatchKit应用程序构建但仍然收到错误消息。

I've tried to build the parent application for the iPhone and then again for my WatchKit app but I still get the error message.

有谁知道导致此错误的原因消息以及如何处理它?<​​/ p>

Does anyone know what causes this error message and how to deal with it?

推荐答案

这似乎发生在需要很长时间才能安装WatchKit App的时候由于安装时间较长,实际监视和Xcode超时等待进程启动。这可能需要很长时间,原因有两个:

This seems to happen when it takes a long time to install the WatchKit App on the actual watch and Xcode times out waiting for the process to start due to the long install time. It can take a long time for two reasons:


  1. 手表有时需要一段时间来注意应用程序需要更新才能更新开始转移。

  2. 如果您的Apple Watch应用程序有大量图像或其他内容需要传输到手表,通过蓝牙实际传输可能需要很长时间。

如果你想避免这个错误,这里有一些提示,改编自这篇博文,它也可以告诉你如何加速你的应用安装: http://www.sneakycrab.com/blog/2015/5/28/speeding-up-slow-install-times-when-debugging-on-a-real-apple-watch

If you want to avoid this error, here are some tips, adapting from this blog post, which can also show you how to speed up your app installs: http://www.sneakycrab.com/blog/2015/5/28/speeding-up-slow-install-times-when-debugging-on-a-real-apple-watch


  1. 在Xcode中选择iOS基础方案,以便在手机上构建和安装。 (不是WatchKit App扩展)

  2. 在Xcode中点击停止。

  3. 让iOS注意到它需要开始安装Watch应用程序。有两种方法,或者a)在手机上的Apple Watch Companion应用程序中打开应用程序的页面,或者b)直接在Watch上点击你的应用程序(当你看到微调器时,你可以击中王冠回去到应用程序图标屏幕,你应该看到它开始加载了)

  4. 一旦手表上安装了应用程序,切换到WatchKit Extension方案并点击播放,它将等待附加调试

  5. 手动启动您的应用。

  1. Choose the iOS base scheme in Xcode to build and install on your phone. (Not the WatchKit App Extension)
  2. Hit stop in Xcode.
  3. Get iOS to notice it needs to begin installing the Watch app. There are two ways, either a) open the page for your app in the Apple Watch Companion App on your phone, or b) tapping on your app directly on the Watch (when you see the spinner, you can hit the crown to go back to the app icon screen, and you should see it start to load)
  4. Once the app is installed on your watch, switch to the WatchKit Extension scheme and hit play, it will be waiting to attach debugging
  5. Launch your app manually.

这篇关于如何避免错误“错误启动”AppName'WatchKit Extension&quot;当试图在实际Apple Watch上构建和运行WatchKit Extension时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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