Tip: “[Your App Name] 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.”

Artin, of the blog site The Geek Blog  provided an excellent post to solve an issue with XCode 4.2, that many of us are having. This involves archiving a binary, when we end up trying to submit it and getting the fun error:

“[Your App Name] 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.”  

Basically, if you have static libraries they end up getting bundled/archived, so you must prevent that. The steps you need to do to rectify this include:

Find all static libraries (ones usually have the project icon and are sitting on the left-hand navigator side. Go to the build settings and :
  1. search for Skip Install and select YES instead of NO
  2. in build phases, under copy headers, move all public and private files to Project section.

Now, one extra bit of tip here. 

After doing all the steps above and archiving and getting the error : 

does not contain a single-bundle application or contains multiple 

you may in fact have either not done the steps above properly, or there is another static library you missed out on adding the flag install skip : YESor move copy header files to project from public/private. Go to the organizer–>archive screen of Xcode (image one)

you then select show in Finder. When in finder, right click and show contents

0screen2520shot25202011-11-0925

You can see above, some of the files that are packaged/archived up. If you see/recognise any other static libraries in the hierarchy somewhere, you can work out which one you have missed out. Obviously I don’t have any others up there, but if i did, it would show in a sub-folder somewhere down there. 
Advertisements
This entry was posted in General and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s