Why doesn't Xcode 4 create any products?

XcodeIosXcode4

Xcode Problem Overview


Regardless of build configuration, building my iPad app does not actually output a .app file. It does run in the iPad simulator and on a device, but when I hit build or build and run, the binary appears under Products in red and is not created in the "build" folder as designated in build settings.

Any ideas?

Xcode Solutions


Solution 1 - Xcode

Xcode 4 places its build products and other intermediaries/temporary files/indexes in a derived data directory now instead of a "build" directory that is mixed in with your product files. It does this to deal with the new workspaces and also so that you can have clean builds of different projects in different workspaces without contaminating each other.

If your original template was old, your built product is probably relative to your source directory instead of relative to your built products directory, which is why it's showing up red. By default, your derived data directory will be under ~/Library/Developer/Xcode/DerivedData. To see where your current workspace/project is placing these files, you can File->Workspace Settings... and take a look at the Build Location.

Solution 2 - Xcode

I was having this problem. not only the product .app was red, also simulator wasn't loaded the binary, it was stuck in attaching 'my app'. i solved it by going to file->project settings. in the tab 'build' changed derived data location to 'project-relative', and in advanced changed build location to 'locations specified by targets'. with the default options it wasn't possible to run the app, i'm not sure why.

Solution 3 - Xcode

To resolve the issue in XCode 4.x go through following steps :-

Open your project in XCode.

Select .xcodeproj file in XCode project Navigator.

Select the target under the PROJECT Heading. (i.e. the top most target, this target specify your project level build settings)

Now navigate to Build Settings.

Now search for option "Per-Configuration Build Products Path" and update it's value to $(SYMROOT) .

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionTikiView Question on Stackoverflow
Solution 1 - XcodeJason CocoView Answer on Stackoverflow
Solution 2 - XcodeAlexander FradianiView Answer on Stackoverflow
Solution 3 - XcodeAnshul SharmaView Answer on Stackoverflow