xcode 4 product still in red

user420479 picture user420479 · Jun 18, 2011 · Viewed 10.2k times · Source

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 ??

Answer

MCKapur picture MCKapur · Oct 19, 2012

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

This should work