1

The watchkit sample app didn't start.

The message was "The operation couldn’t be completed. (LaunchServicesError error 0.)".

The sample app is "WatchKitCatalogUsingWatchKitInterfaceElements", which I got from the Apple Developer library.

I tried to reset the contents and settings of the iOS simulator.
Any ideas would be greatly appreciated.

Phantômaxx
  • 36,442
  • 21
  • 78
  • 108

2 Answers2

11

The bundle identifier of your watch extension and app have to be related to your iOS apps original bundle identifier. If you have "com.yourCompany.yourApp" as bundle identifier your extension has to be "com.yourCompany.yourApp.watchkitextension" and the watch app "com.yourCompany.yourApp.watchkitapp" Otherwise you get this confusing error.

AlbertX
  • 111
  • 2
0

This can be caused by a number of problems. Please see the answer in the question this should be duped to:

An error was encountered while running (Domain = LaunchServicesError, Code = 0)

Community
  • 1
  • 1
Jeremy Huddleston Sequoia
  • 21,715
  • 5
  • 69
  • 82