Xcode 4 "succeeded" archiving app but nothing appears in Organizer

Friday, March 11, 2011


I recently switched one of my iOS projects from Xcode 3 to Xcode 4, and, while I ran into many problems, one of the biggest was the broken "Build and Archive" functionality. It worked if I created a new project from scratch, but it wouldn't work on my existing project — it would say it succeeded, but it would output an empty xcarchive and nothing would show up in the Organizer.

After a long, long process of trial and error (since Xcode didn't produce any error/warning messages, and there was nothing in the console), I found what the culprit was, at least for my project. I simply had to un-set the "Installation Directory" and "Skip Install" configs under the "Deployment" section of my target, and let the defaults take over. I'm using xcconfig files instead of setting these in the project file, so to do this I deleted INSTALL_PATH and SKIP_INSTALL. Interestingly, the same settings worked fine with Xcode 3.

Tags: ios, iphone, xcode, xcode4 | Posted at 00:58 | Comments (10)


Comments

Mike on Thursday, March 31, 2011 at 00:09

Thanks a lot, I had the same issue and was close to tearing my remaining hair out.

Kevin Peck on Wednesday, April 6, 2011 at 18:08

I was about ready to toss this stupid pile right out the window. Now I get the archive to show up but Xcode 4 crashes every time I hit the submit button.

FU SJ.

Kevin Peck on Thursday, April 7, 2011 at 07:05

As a follow up - Submit and Validate will crash Xcode 4.0, you MUST get 4.0.1 for these to work. Nice job over in QA there Apple.

Izzet Okbay on Saturday, December 10, 2011 at 06:02

It's done at last. It looks a very improved intervention. I had same situation with Mike.
Thank you very much.

Jerry Krinock on Monday, January 23, 2012 at 14:28

The SKIP_INSTALL was indeed the problem for me. I had switched it on after reading the documentation, and that's when my archives started becoming empty. The documentation says: "if [your application] relies on static libraries, ensure that those libraries are part of the application binary by setting the Skip Install build setting to Yes in the Release build configuration of the target that builds and archives the application." Well, I didn't have any static libraries, but I was building in a private framework, and so I thought that setting SKIP_INSTALL to YES for Release would be a good idea. Didn't seem like it would do any harm. Wrong!

Anthony Coe on Sunday, January 29, 2012 at 14:32

Thanks. It worked! I spent 2 days trying to figure this out.

Mark Celsor on Sunday, February 19, 2012 at 16:59

That did it for me too! Thanks!

john on Tuesday, June 12, 2012 at 16:29

Thank you for the tip. I am using PhoneGap and the changing Install to No fixed the problem.

Jon on Thursday, September 20, 2012 at 00:12

WOW! Thanks so much! You saved us hours of time!

Michal on Thursday, May 2, 2019 at 03:35

8 years later and you helped one more lots soul. Thanks.

Add a comment

Name:
Email: (optional, not displayed to public)
URL: (do not fill this in — leave blank!)

Comment: