开发者

xcode 4 product still in red [duplicate]

This question already has answers here: Closed 10 years ago.

Possible Duplicate:

.app file appears in red (missing) in开发者_如何学运维 new projects with Xcode 4

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

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

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

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”

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.

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


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

This should work


You need to build the product in release mode. This could be a duplicate - or at least very similar to the question Xcode product in red when in release mode

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜