简体   繁体   中英

“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.

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.

If I wait long enough, Xcode eventually errors with

"Install of Apple Watch Application never finished" Xcode错误

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

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

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. Click your app's name.
  3. Toggle "Show App on Apple Watch" switch as shown in the screenshot below. (turn it off, and back on again)
  4. Run the app again from Xcode.

在此输入图像描述

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.

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

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.

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

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.

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.

I had similar issue on a physical device. I fixed this by restart 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.

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.

  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'

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

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

Happy Coding :)

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

钥匙串共享已开启但应该关闭

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM