xcode 4 产品仍为红色 [英] xcode 4 product still in red

查看:104
本文介绍了xcode 4 产品仍为红色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
.app 文件显示为红色(缺少) 在 Xcode 4 的新项目中

XCode 4 : Product 仍然以红色显示......产品下的 myAppName.app ??

XCode 4 : Product still appearing in red … myAppName.app under Products ??

在 XCode Preferences:Locations 下,我看到 Build 将构建产品放置在派生数据位置(推荐)".选中唯一子文件夹"列表项.

Under XCode Preferences:Locations I see for Build "Place build products in derived data location (recommended)". "Unique subfolder" list item is checked.

转到文件夹:~/Library/Developer/Xcode/DerivedData,然后我重新构建并查看:myAppName-bqxvzqesjyqjhlgzhainyxexzacq 文件夹:构建文件夹:产品文件夹:Debug-iphonesimulator 文件夹:我的应用程序我的应用程序.同步信号

Going to Folder: ~/Library/Developer/Xcode/DerivedData, I then build fresh and see: myAppName-bqxvzqesjyqjhlgzhainyxexzacq Folder : Build Folder : Products Folder : Debug-iphonesimulator Folder : myApp myApp.app. dSYM

在项目设置下,我有应用程序目标 = iPhone,所以从产品文件夹向下的文件夹以名称开头是有道理的:Debug-iphonesimulator.我怀疑前缀调试"来自 Code Signing Identity = iPhone Developer,而不是 iPhone Distribution.

Under Project Settings, I have Application Target = iPhone, so it makes sense that the folder one down from Products Folder starts with the name: Debug-iphonesimulator. I suspect the prefix "Debug" comes from the Code Signing Identity = iPhone Developer, versus iPhone Distribution.

然后,我将首选项下的位置重置为将构建产品放置在目标指定的位置"

Then, I reset Locations under Preferences to "Place build products in locations specified by targets"

此时,我的应用程序的项目文件夹中出现了一个构建文件夹,它应该是;然而,Debug-iphonesimulator 文件夹也再次出现在上面的项目文件夹中.

At this point a build Folder appears in my app’s Project Folder, which it’s supposed to; however, the Debug-iphonesimulator Folder also shows up again in the above Project Folder.

更糟糕的是,myAppName.app 仍然显示为红色 ??

To make matters worse, myAppName.app still shows in red ??

推荐答案

将应用置于 iOS 设备模式,然后点击 Product -> Build For -> Archiving

Put the app in iOS Device mode, then click Product -> Build For -> Archiving

这应该有效

这篇关于xcode 4 产品仍为红色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆