Xcode 4 and Sharing Archives

Based on discussion in https://devforums.apple.com/thread/86137

In Xcode 3, as it turns out there is bug when building projects that have dependencies on external static library projects. When these projects are pulled over into Xcode 4, this issue manifests itself in the inability to share an archive properly as an .ipa file. Instead we get a .xcarchive file. Also, attempting to validate the archive gives us the following error message:

“<AppName>” does not contain a single–bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single–bundle application.

The solution is modify the “Skip Install” setting of each static library to be set to “Yes” instead of the default “No”.

The bug in Xcode 3 is that even though “Skip Install” is set to “No”, it seems to be ignored, and the output is not placed in the usr/local/lib directory within the archive.

Leave a Reply