Xcode 8 消息模板应用程序:iOS 模拟器上的错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37939749/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 8 Messages Template Application: Error on iOS Simulator
提问by Totoro
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:
当我使用 Xcode 8 的“消息应用程序”模板创建一个新项目并尝试在 iOS 模拟器上运行它时,我收到以下错误:
Title
标题
The request to open
com.myDomain.MyApp
failed.
打开请求
com.myDomain.MyApp
失败。
Details
细节
The request was denied by service delegate (
SBMainWorkspace
) for reason:NotFound ("Application "com.myDomain.MyApp" is unknown to FrontBoard").
请求被服务委托 (
SBMainWorkspace
)拒绝,原因如下:NotFound ("Application "com.myDomain.MyApp" is unknown to FrontBoard").
The message is the same for Objective-C
and Swift
projects.
Objective-C
和Swift
项目的消息相同。
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.
此错误发生在 Xcode 8 beta 版本中。
采纳答案by ubiAle
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)
您可能需要检查您的计划。应该在启动时询问可执行文件(您要选择消息应用程序)。编辑方案 -> 信息 -> 可执行文件 -> 启动时询问(而不是 MyApp.app)
回答by fzh
I met the same problem,then i fixed it by two steps:
我遇到了同样的问题,然后我通过两个步骤修复了它:
click the
New Scheme
, add a new scheme.click the
Manage Schemes
, and delete the old.
单击
New Scheme
,添加新方案。单击
Manage Schemes
,然后删除旧的。
then (Although I don't know why) I can run my project!
然后(虽然我不知道为什么)我可以运行我的项目!
回答by Dylan Nissley
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.
当我使用 xcode 8.1 的测试版时,这发生在我身上。当我将 xcode 的应用商店版本从 8.0 升级到 8.1 时,这个问题就消失了(8.0 从未发生过,只是 8.1 测试版)。找不到对错误或修复的引用,但如果您没有使用 xcode 的官方应用商店版本,则可能值得仔细检查。