Building Archive in Xcode does not create archive

Chris picture Chris · Aug 29, 2011 · Viewed 10.7k times · Source

It seems all my searches to figure this out are fruitless. Knowing me it's one stupid checkbox or pulldown I'm missing. Is it maybe my install? Do I need to uninstall Xcode 4 and reinstall?

I've gone through all these steps and tricks and fixes all over the net and on SO, yet nothing gets me closer to getting an archive to pop up in my organizer. When I go to look at the archive that was built, it's just a zero k file. I get a build succeed, I change skip install to both yes and no ... I do all these things I find on the net, I'm going crazy. I'm pretty sure my certificates are all set up correctly, I have things checked where I'm told to be checked. It's driving me crazy. 99% of the solutions I see are:

"Anyway, in the "Skip Install", set the value for "Release" as "NO" (the help doc told you the opposite). Once you set it to "NO", archive again. You'll immediately see your app showing up in the archive organizer."

Well, it's not working or any further answers after aren't either.

Answer

mnickv31 picture mnickv31 · Sep 9, 2011

Archive only seems to include those build products that are set to be "installed", so make sure that you deactivate Skip Install in your build settings:

  1. Go to BuildSettings.
  2. Find "Skip Install".
  3. Select "NO" for Release.

Additionally, Xcode needs an Install Path. For Applications this is usually /Applications, but when e.g. building a plugin you might want to set this to just /, which will put the build product in the root of your archive. Note that you must use a "real" path, not a relative one like ~/Library.