XCode 4 Bug Solution for Archiving Build with Static Library

XCode 4 Bug Solution for Archiving Build with Static Library

So there seems to be a little bug in the latest release of XCode 4, the GM build. If you attempt to archive a build that is linked to a static library, you will run into issues. So the symptom is if you create a build and archive it, when you attempt to “share” it, you won’t be give the option to create a .ipa file, instead it will create a .xcarchive file. So the solution I stumbled across on the devforums was this:

1) Select my project in the file listing on the left.

2) Select my static library in the Targets section of the pane just to the right.

3) Find “Skip Install” in the Deployment section of the build settings, and change it from No to Yes



  • Mark
    Posted at 13:03h, 25 February Reply

    Brilliant… I talk to you on the phone today and then you go and solve my issue I’m having after a random google search that pulls up your site!

    I love it!

  • Nick Farina
    Posted at 14:22h, 04 March Reply

    Thanks a million, what an obscure setting!

  • Uppfinnarn
    Posted at 07:34h, 11 March Reply

    Nice! I’ve spent an entire afternoon trying to find out how to do this, now I feel stupid when the solution was that easy. It’s a bit strange that Apple doesn’t tell anyone about this either…

  • Christian
    Posted at 00:54h, 12 April Reply

    I changed the skip install here on the dependent project, but I’m still getting the same error.

  • Audel
    Posted at 22:54h, 13 April Reply

    TYVM you’ve solved all my pbrloems

  • gonzobrains
    Posted at 12:47h, 19 March Reply

    I don’t link to any static libraries and I have this problem. 🙁

    • timwnitram
      Posted at 12:56h, 19 March Reply

      Make sure you’re using a release version of Xcode, beta versions won’t archive as well. If you still have problems, you can always do a brute force method of taking your build folder (right-click on the product.app and choose “reveal in finder”), renaming the entire directory “Payload”, zip it up and change the suffix to .ipa. Voila, there’s your archive. Good luck!!

Post A Comment