Xcode 6.2 watchkit sample app doesn't start. "The operation couldn’t be completed. (LaunchServicesError error 0.) [duplicate]

蹲街弑〆低调 提交于 2019-12-10 00:01:15

问题


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.


回答1:


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.




回答2:


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)



来源:https://stackoverflow.com/questions/29097067/xcode-6-2-watchkit-sample-app-doesnt-start-the-operation-couldn-t-be-complete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!