বুধবার, ২১ মার্চ, ২০১২

Create .ipa file or submitting app to appstore with static library like Core-Plot

In one of my project for beta testing, I select "Product->Archive". The archiving completes successfully, and the Organizer shows the archive file that was just created.

I select the archive, click on the "Share" button, it prompts me for location  to store it, and then creates a .xcarchive package to the location. I was expecting it to generate a .ipa, but it never presented me with any options.

 
Then I try to submit app and Xcode 4 was giving me the following 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.”



It was a static library adding issue. I am specifically using Core Plot and it’s instruction set hasn’t been updated for Xcode 4 yet.  Here are the things I had to do to get Core Plot to bundle correctly with my App to submit it:
  1. Click on the Core Plot project which should be a child of your App’s project.
  2. Click on the Project CorePlot-CocoaTouch and go to the Build Settings.  Set “Skip Install” to Yes.
  3. Click on the CorePlot-CocoaTouch target and set “Skip Install” to Yes.
  4. Click Build Phases and under Copy Headers, move all of the Public and Private entries to the Project section.
You should then be able to build your project for Archive and submit to Apple.

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন