Reputation: 1401
How to create an IPA file? Do I need to connect my device?
I followed [this link][1]. But I still failed.. Now I can build my apps, but whenever I click product->archive.
UPDATE : finally solved. I just change from distribution to developer.
thanks to all of you guys, specially LithuThiruvathira. Thanks for your patient for telling me which one is wrong and have me to try. thanks.
Upvotes: 1
Views: 2252
Reputation: 1317
First of all, you need a valid provisioning profile + certificate + signature for the certificate. You should setup your project as if you would run the app on a device or simulator.
I recommend to make a clean before making the ipa (command + shift + k). Then disconnect any devices, select the "iOS Device" from the simulator/device list. Open from the menu Product/Archive and wait until the X Code finishes making the archive. After this will appear a new window, press "Share...", and you should select the certificate that belongs to the provisioning profile (and be sure the 'iOS App Store Package (ipa) is selected). Press next. Will appear another window, you should enter here the title of the app. When I'm making in-house builds, usually I check the "Save for Enterprise Distribution" box, and complete the ipa file's path at the "Application URL" and add again the "Title" of the app. Press save, and you are ready!
Upvotes: 1
Reputation: 425
First you download your certificate and provisioning profile then double click on both. after this open your project in xcode then change the Bundle Identifier to the provisioning profiles identifier. now it works fine.
Upvotes: 1
Reputation: 2987
Follow the steps In this tutorial you will get the step by step procedure to create correct provisioning profile and every other thing
After following this tutorial Go to Products ->Archive
Upvotes: 2