The apple watchkit app showing error “The operation couldn't be completed. (LaunchServicesError error 0.)”

百般思念 提交于 2019-12-10 16:36:42

问题


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.)".


回答1:


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




回答2:


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!



来源:https://stackoverflow.com/questions/29516284/the-apple-watchkit-app-showing-error-the-operation-couldnt-be-completed-laun

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