How can I avoid the "Startup Error" AppName "WatchKit Extension" error when trying to build and run the WatchKit extension on the actual Apple Watch?

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

"Error Launching 'AppName' WatchKit Extension - Launch of Apple Watch Application was canceled"

I tried to create a parent application for the iPhone and then again for my WatchKit application, but I still get the error message.

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

+6
source share
2 answers

This happens when you want to install the WatchKit application on the actual Xcode clock and time, waiting for the process to start due to the long installation time. This can be time consuming for two reasons:

  • Sometimes a watch needs to “notice” that an application needs to be updated before it starts transferring.
  • If your Apple Watch application has a lot of images or other content that it needs to transfer to the watch, the actual transfer via Bluetooth can take a lot of time.

If you want to avoid this error, here are some tips that come from this blog post, which also shows how to speed up the installation of applications: http://www.sneakycrab.com/blog/2015/5/28/speeding-up -slow-install-times-when-debugging-on-a-real-apple-watch

  • Select the basic iOS layout in Xcode to create and install on your phone. (Not an extension of the WatchKit app)
  • Hit stop in Xcode.
  • Get iOS to notice that you need to start installing the Watch app. There are two ways: a) open the page of your application in the Apple Watch Companion application on your phone or b) click on your application directly on Watch (when you see the counter, you can click on the crown to go back to the application icon screen, and you should see that it starts to load)
  • Once the application is installed on your watch, switch to the WatchKit expansion scheme and click the play button, it will wait to enable debugging
  • Launch the application manually.
+3
source

Make sure your iPhone is turned on Bluetooth

Then I uninstalled the application from my iPhone and restarted it. This fixed it for me.

0
source

Source: https://habr.com/ru/post/987279/


All Articles