Xcode 8 Messages Template Application: Error on iOS Simulator

狂风中的少年 提交于 2019-12-13 11:52:50

问题


When I create a new project using the "Messages Application" template of Xcode 8 and try to run it on iOS simulator, I get the following error:

Title

The request to open com.myDomain.MyApp failed.

Details

The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.myDomain.MyApp" is unknown to FrontBoard").

The message is the same for Objective-C and Swift projects.

I don't find any search result for this message yet, so any hint will be helpful. I will update the question as I progress.

Edit

This error occurred with Xcode 8 beta versions.


回答1:


You may want to check your scheme. The executable should be asked on launch (You want to select Messages app). Edit Scheme -> Info -> Executable -> Ask on launch (rather than MyApp.app)




回答2:


This happened to me when I was using a beta of xcode 8.1. When I upgraded the app store version of xcode from 8.0 to 8.1 this problem disappeared (and it never happened with 8.0, just the 8.1 beta). Couldn't find a reference to a bug or a fix, but if you're not using the official app store version of xcode it might be worth double checking.




回答3:


I met the same problem,then i fixed it by two steps:

  1. click the New Scheme, add a new scheme.

  2. click the Manage Schemes, and delete the old.

then (Although I don't know why) I can run my project!




回答4:


I had the same issue because I had an empty environment variable set in my current scheme.

I deleted this empty environment variable and was then able to build correctly.



来源:https://stackoverflow.com/questions/37939749/xcode-8-messages-template-application-error-on-ios-simulator

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