4

The apple watchkit app is not launching on simulator. After renaming target always getting the message "The operation couldn't be completed. (LaunchServicesError error 0.)".

  • Possible duplicate: http://stackoverflow.com/questions/25889189/unable-to-run-app-in-simulator-an-error-was-encountered-while-running-domain – Javier Flores Font Apr 08 '15 at 13:49
  • possible duplicate of [An error was encountered while running (Domain = LaunchServicesError, Code = 0)](http://stackoverflow.com/questions/25632886/an-error-was-encountered-while-running-domain-launchserviceserror-code-0) – Jeremy Huddleston Sequoia Sep 20 '15 at 07:50

2 Answers2

2

Another reason for this, is to have two different targets of WatchKit App in the same project. Attached capture from Console.app:

capture

Pedro Lorente
  • 245
  • 2
  • 10
1

Be sure you didn't change anything in WatchApp plist file. You should have same bundle identifier (with .watchkitapp suffix) and WKCompanionAppBundleIdentifier. And same for WatchAppExtension plist file.

BTW, I had a great problem, because we use many custom keys in plist, and you are not allowed to add them in WatchApp plist file it will cause the error.

P.S. Try launching it one the device it will show another error for sure!

katleta3000
  • 2,400
  • 1
  • 14
  • 22