ios - 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? -


when try build , run watchkit extension on real apple watch, following error message:

"error launching 'appname' watchkit extension - launch of apple watch application canceled"

i've tried build parent application iphone , again watchkit app still error message.

does know causes error message , how deal it?

this seems happen when takes long time install watchkit app on actual watch , xcode times out waiting process start due long install time. can take long time 2 reasons:

  1. it takes while watch "notice" app needs updating before begins transfer.
  2. if apple watch app has lot of images or other content needs transfer watch, actual transfer on bluetooth can take long time.

if want avoid error, here tips, adapting blog post, can show how speed app installs: http://www.sneakycrab.com/blog/2015/5/28/speeding-up-slow-install-times-when-debugging-on-a-real-apple-watch

  1. choose ios base scheme in xcode build , install on phone. (not watchkit app extension)
  2. hit stop in xcode.
  3. get ios notice needs begin installing watch app. there 2 ways, either a) open page app in apple watch companion app on phone, or b) tapping on app directly on watch (when see spinner, can hit crown go app icon screen, , should see start load)
  4. once app installed on watch, switch watchkit extension scheme , hit play, waiting attach debugging
  5. launch app manually.

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -