xcode 为什么我的产品中的目标是红色的?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11754880/
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
Why are my targets in Products colored red?
提问by Luke
Possible Duplicate:
.app file appears in red (missing) in new projects with Xcode 4
With seemingly no provocation, the three .app entries in the Products folder of my hierachy are listed in red. Show In Finder is greyed out when I right click them, even if I build them first (and building is successful, no errors).
看似没有任何挑衅,我的层次结构的 Products 文件夹中的三个 .app 条目以红色列出。当我右键单击它们时,在 Finder 中显示是灰色的,即使我先构建它们(并且构建成功,没有错误)。
Any idea what's happening?
知道发生了什么吗?
回答by Martin R
Assuming that you are talking about iOS apps:
假设您在谈论 iOS 应用程序:
Xcode shows only the .app built for the device in the Products folder. So if you clean the product and then build for Simulator, it will still be red. If you build for the device, Xcode will show it and "show in finder" also works.
Xcode 在 Products 文件夹中仅显示为设备构建的 .app。因此,如果您清洁产品然后为模拟器构建,它仍然是红色的。如果您为设备构建,Xcode 将显示它并且“在 finder 中显示”也有效。