“Apple Watch应用的安装从来没有完成”在设备上部署Watch kit应用时出现的错误

[英]“Install of Apple Watch Application never finished” Error when deploying watch kit app to device


So I got my new watch (yay!). I manually added its UDID to the developer portal and refreshed the provisioning profiles and I was able to push an archive to ITC for testing but now I want to run the app in debug on my watch itself.

所以我得到了我的新手表(耶!)我手动将它的UDID添加到开发人员门户并刷新了配置文件,我能够将一个归档文件推到ITC进行测试,但是现在我想在我的手表上自己的debug中运行这个应用程序。

I try deploying the watch kit app target set to my phone as the device and it sits there and runs/ churns for a while and nothing happens.

我试着将watch kit应用程序目标集部署到我的手机上作为设备,它在那里运行/搅拌一段时间,什么都没有发生。

If I wait long enough, Xcode eventually errors with

如果我等待的时间足够长,Xcode最终会出错

"Install of Apple Watch Application never finished" Xcode error

“Apple Watch应用的安装从未完成”

Has anyone run across this or know of any tricks I can try?

有人遇到过这个问题吗?或者知道我能尝试什么诀窍吗?

7 个解决方案

#1


14  

I keep running into this as well with Xcode 7 beta and iOS 9 / watchOS 2 simulators.

我在Xcode 7 beta和ios9 / watchOS 2模拟器中也不断地遇到这个问题。

One solution that worked for me was to reset and restart both simulators, but it didn't work reliably. So I tried some other things, and what eventually started to work reliably for me was:

一个对我有用的解决方案是重置和重新启动两个模拟器,但它不能可靠地工作。所以我尝试了一些其他的东西,最终开始可靠地为我工作的是:

  1. Go to the "Apple Watch" companion app on the iOS simulator.
  2. 进入iOS模拟器上的“Apple Watch”配套应用。
  3. Click your app's name.
  4. 点击应用程序的名字。
  5. Toggle "Show App on Apple Watch" switch as shown in the screenshot below. (turn it off, and back on again)
  6. 点击下面的屏幕截图,切换到Apple Watch上的“显示应用”。(把它关掉,再打开)
  7. Run the app again from Xcode.
  8. 再次从Xcode运行应用程序。

enter image description here

#2


8  

Well with much testing and fooling around, I was able to fix the problem.

由于有很多测试和欺骗,我能够解决这个问题。

There was a mix of the error above as well as the usual verification error.

上面的错误和通常的验证错误混杂在一起。

I had to double check and triple check that all 3 of the developer provisioning profiles for watch ext, watch app, and the app were up to date with the updated Watch UDID device.

我不得不反复检查,三遍检查,所有三个开发人员为watch ext、watch app提供的配置文件,以及该应用与最新的watch UDID设备同步。

Note: For debugging watch apps, I have found that you seem to have to select to run the app from your watch and then the debugger will trigger

注意:对于调试手表应用程序,我发现您似乎必须选择从手表运行应用程序,然后调试器将触发。

#3


4  

I had this problem with the simulator. I solved it by resetting both simulators (File/"Reset Content and Settings..."). Not sure if I had to be that drastic... deleting the app may have worked also, restarting the simulator didn't.

我对模拟器有这个问题。我通过重置两个模拟器(文件/“重置内容和设置…”)来解决这个问题。我不确定我是否必须如此激烈……删除应用程序可能也有效,重新启动模拟器没有。

#4


1  

I had this same problem, but for different reasons when developing with Xcode 7 and iOS 9.

我也有同样的问题,但是在使用Xcode 7和ios9开发时,出于不同的原因。

If this helps for anyone developing their WatchKit Extension (not watchOS 2.0 app stand alone) with Xcode 7 beta (and iOS 9) and they wish to test on their actual Watch, I had to make sure the WatchKit App Device Id (on the Apple Dev Portal) AND the Xcode target had App Groups enabled.

如果这对任何人帮助发展他们WatchKit扩展(不是watchOS 2.0应用程序独立)在Xcode 7β(iOS和9),他们希望测试实际的观察,我不得不确保WatchKit应用设备Id(在苹果开发者门户)和Xcode目标应用程序组启用。

This is different. Perviously just the Watch Extension required App Groups enabled.

这是不同的。显然,手表扩展需要应用组。

My WatchKit app DEV provisioning profile also, of course, had to have the UUID of the watch used in development.

当然,我的WatchKit应用程序开发配置文件也必须在开发中使用手表的UUID。

#5


0  

I had similar issue on a physical device. I fixed this by restart apple watch.

我在物理设备上也有类似的问题。我通过重启apple watch解决了这个问题。

To do this just long press a button on right side of watch and select "Power off" from screen and after that next long press on right side button.

要做到这一点,只需长按手表右边的一个按钮,从屏幕上选择“关机”,然后长按右边的按钮。

#6


0  

I had the exact issue, and after trying different combinations, I was able to resolve this issue.

我有确切的问题,在尝试了不同的组合之后,我能够解决这个问题。

Below is list of items you need to check before you debug your Watch App on Simulator:

以下是在模拟器上调试手表应用之前需要检查的项目列表:

  1. Make sure that the Bundle Identifier of your WatchKit App and WatchKit Extension is set properly and you have selected proper provisioning profile and certificates for both.

    确保您的WatchKit应用程序和WatchKit扩展的Bundle标识符设置正确,您已经为这两个应用选择了正确的配置文件和证书。

  2. The Bundle Identifier of your 'WatchKit extension' should contain the Bundle identifier of your 'WatchKit App'. For example if your 'WatchKit App' has bundle identifier as 'com.example.watchkitapp', then your 'WatchKit Extension's' bundle identifier should be 'com.example.watchkitapp.watchkitextension'

    “WatchKit扩展”的Bundle标识符应该包含“WatchKit应用”的Bundle标识符。例如,如果你的“WatchKit应用程序”的bundle identifier为“com.example”。watchkitapp'然后'WatchKit扩展' bundle id应该是'com.example.watchkitapp.watchkitextension'

  3. Make sure your Watch App & Extension has Version Number same as your iPhone app.

    确保你的手表应用和扩展的版本号与你的iPhone应用相同。

I hope the above steps will help you resolve your issue.

我希望以上步骤能帮助您解决问题。

Happy Coding :)

编码快乐:)

#7


0  

I had this problem and solve it by turning 'Keychain sharing' off in Project->Target->Capabilities.

我遇到了这个问题,通过关闭项目中的“密钥链共享”来解决——>目标——>功能。

Keychain sharing is on but should be off

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2015/04/27/78709aae86dd80ed49652267440cd55f.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告