Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode creates archive instead of IPA

I am trying to create an ipa file (Product->Archive->Share) but Xcode produces just archive file.

It worked well few days ago. I was always getting working ipa but now I can't make it to produce ipa (when I click on share in archive I can't sign the code). I have added subproject into main project within few past days (CorePlot-CocoaTouch). I am no one hundred sure it can relates.

like image 983
Engeor Avatar asked Jan 05 '12 08:01

Engeor


2 Answers

If you've added a static library, they get installed by default now. This is not okay for iPhone applications. Go to the project file and select the static library's target. Under Build Settings, go to the Deployment section and change the Skip Install setting to YES. Since Xcode 4, it is now NO by default, which will break your IPA (since the only binary you can install legally is the application binary itself).

You may have to switch from the Basic view to the All view to see this setting.

like image 190
Jason Coco Avatar answered Sep 24 '22 15:09

Jason Coco


Since the answer that worked for me is buried in the comments, I thought I'd bring it to the top. In my case, changing the header files for the static library to Project fixed the issue.

To do this, select your library target, then go to Build Phases > Copy Headers and move the header files from Public to Project.

like image 38
Brian Rak Avatar answered Sep 26 '22 15:09

Brian Rak