How to create IPA in Xcode 6?

95,589

Solution 1

you could follow below:

1.Select your swiftDemo in your xcode(left-hand side as shown) Then select Product option, in which you could select Archive option.

Select Archive - The highlighted one in the image

  1. Then a new window would open up as follow and in that window select the export option

Select Export option

3.Then a pop up will come as below and select first option as you looking for apple store. So now follow as it say.

Select First option

UPDATE -> Select the Save to ad-hoc deployment as below

Save to ad-hoc

-> then if you have not sign with your apple developer id then below screen would pop-up

Add apple id

-> Now select add in this and provide your apple id and password in new window as shown.

apple id and password required

-> Rest follow as guided by xcode and finally you will have your IPA file.

-> Go with your testflight.

Don't forget to provide your provisioning profile and certificates in code-signing your build setting in xcode.

Solution 2

If you want to upload .ipa file to itunesconnect without integrating developer account in Xcode and you want to use application loader. then you can generate .ipa with iTunes .

Step 1 :- Select device inplace of simulator.

enter image description here

Step 2 :- Go to Product -> select Archive

enter image description here

Step 3 :- After complited process right click to your Archive -> and select show in Finder

enter image description here

Step 4 :- when you click on show in finder you will redirect to Archive folder, looks like this

enter image description here

Step 5 :- Right click on .xarchive file -> select Show Package Contents option.

enter image description here

Step 6 :- Go to Product Folder -> Application Folder -> You will find yourprojectname.app

enter image description here

Step 7 :- Now to convert .app to .ipa just drag and drop into itunes . check below image ,

enter image description here

Step 8 :- Now put this .ipa file in safe place and use when upload with application loader .

Note :- if you want to know how to upload app with application loader then check this ,

Upload app with application Loader

EDIT :-

WARNING :- Don't make .ipa with changing extension from .aap to .zip and .zip to .ipa.

I have seen in many answer that , they have suggest compress .app file and then change the extension from .zip to .ipa . It is not working now . By this method you will get Error like ,

IPA is invalid, it does not include a payload directory.

Solution 3

1. Make your application with X-Code

.

2. Run your application in simulator

.

3. Open finder, Goto -> /Library/Developer/XCode/DerivedData/<Your App Name-blahblahblah>/Build/Products/Debug-iphonesimulator

.

4. Open iTunes -> Goto Apps

.

5. Drag YourApplication.app to iTunes

.

6. Drag back your app from iTunes to finder to get YourApplication.ipa

Solution 4

In XCode Version 9.0 (9A235):

    1. Archive your Project
    1. Click Window->Organizer, select your archived project. Click Export
    1. Select Development (option)
    1. Click Next and Sign the App and export

This will export publish content to a location, where you can find the .ipa file.

Share:
95,589
bhavik
Author by

bhavik

Updated on September 26, 2020

Comments

  • bhavik
    bhavik over 3 years

    In my project I can not figure out how to create an IPA file. Can anyone explain, step by step, how to make IPA file in Xcode 6?

  • bhavik
    bhavik almost 10 years
    After this step my error occur like. "To Save for IOS App Store Development, you need to add an apple ID account that is enrolled in the IOS developer program for the development team '92P8AKNGW9'"
  • nikhil84
    nikhil84 almost 10 years
    So solution is to goto apple developer side and register yourself for development. For that you might need to make a payment and later use that apple id to launch your app onto app store. Check out this link apple
  • bhavik
    bhavik almost 10 years
    I have already exist in apple developer id and provisioning profile and certificate also installed.
  • nikhil84
    nikhil84 almost 10 years
    Go through this app distribution will give u full step-wise detail.
  • nikhil84
    nikhil84 almost 10 years
    @bhavik don't forget to tick my post.
  • bhavik
    bhavik almost 10 years
    Can you send screen shots of next step of creating IPA file ?
  • nikhil84
    nikhil84 almost 10 years
    I can't provide you with screenshot as I don't have distribution certificate as When u want to upload your app on appStore then you need to provide distribution certificate and replace your development certificate with distribution cert. in your app too. Then you would be able to launch it on AppStore. So now you need to get your distribution certificate first.
  • bhavik
    bhavik almost 10 years
    I don't want to launch my app but just create IPA file using my development cert.
  • nikhil84
    nikhil84 almost 10 years
    My sentence is that you could launch/share your app on apple app store and Yes, you need development cert for creating ipa file.
  • bhavik
    bhavik almost 10 years
    I have already development cert and provisioning profile installed in my project.
  • nikhil84
    nikhil84 almost 10 years
    Sorry my mistake. U require distribution certificate for uploading your app on apple appStore and when u get your distribution certificate then replace it with your development certificate and follow the step's.
  • bhavik
    bhavik almost 10 years
    why i need to get distribution certificate i just only want to create IPA file for testflight.
  • nikhil84
    nikhil84 almost 10 years
    Then you could select the "Save for Ad-Hoc deployment" then provide your provisioning profile and save your IPA ,and upload for testflight.
  • bhavik
    bhavik almost 10 years
    can you give screen shots of this process?
  • bhavik
    bhavik almost 10 years
    when ever i create IPA file at that time provide Apple id and password ?
  • nikhil84
    nikhil84 almost 10 years
    this is one time so far I know as I have not created any IPA in this new xcode 6. As far for xcode 5 it was one time only.
  • Esha
    Esha over 9 years
    After doing all this steps I am getting error: "Your account already has a valid iOS distribution certificate”. I have certificate for both development and distribution. and I am creating ipa using the development certificate to save as ad hoc. Can you please tell me what things is causing that?
  • nikhil84
    nikhil84 over 9 years
    I haven't came cross this situation so far but found a link which will solve your issue.
  • jameshfisher
    jameshfisher over 9 years
    The "Archive" option in the "Product" menu is greyed out.
  • nikhil84
    nikhil84 over 9 years
    @jameshfisher You need to select iOS device in your xcode as you might have selected any simulator for now. So change it to iOS device and then it will work.
  • bhavik
    bhavik over 9 years
    Next step is configure apple account which is used in creating provisioning and certificate.
  • bhavik
    bhavik over 9 years
    Go to the xcode preferences->Accounts-> Add Apple ID Add Apple account into it then goto view details.
  • fill_J
    fill_J over 9 years
    Thanks! you save my life.. :)
  • ade19
    ade19 over 9 years
    If the archive option is grade out. Check out stackoverflow.com/questions/16050640/…
  • Neocortex
    Neocortex about 9 years
    can i import a .ipa file, simulate as iPad air and debug-fix issues?
  • nikhil84
    nikhil84 about 9 years
    @Neocortex you could run the ipa file in iPad air simulator but can't debug-fix issue. For that you need to have source code and run it via xcode tool using debug features provided by xcode.
  • Neocortex
    Neocortex about 9 years
    @walle84 - I am building a storefront app which goes into 'Newsstand' of iPad, with the sourcecode, there is no clue how i should import it. The source code is a zip file that I feed into the adobe DPS app builder. What project I should choose to import it? I want to work without an ipad is that possible only using macbook pro and xcode?
  • nikhil84
    nikhil84 about 9 years
    @Neocortex Sorry but I have no idea for DPS app builder or Newsstand. But as far I know, for debugging a project u need Xcode.
  • nikhil84
    nikhil84 about 9 years
    @Neocortex Please do update me if u find a way or so.
  • Neocortex
    Neocortex about 9 years
    [adobe.com/devnet/digitalpublishingsuite/articles/…> this is the only way to debug and I did it.
  • Neocortex
    Neocortex about 9 years
    I am facing to reduce the space between the battery icon till the beginning of the storefront page in iPad application. Is there a way to do that? I couldn't able to post a image here.
  • nikhil84
    nikhil84 about 9 years
    @Neocortex - I went to the provided link by you but page is not available. Also why don't ur post your query on stackoverflow along with screenshot then share with me the link of ur post. Will definitely look into it
  • Neocortex
    Neocortex about 9 years
    @walle84 - Stackoverflow has a poor auto/manual moderator system which has blocked me from asking useful questions. So I am trying to get help from related topics. When I click on this link it's working fine. adobe.com/devnet/digitalpublishingsuite/articles/…
  • Umair Afzal
    Umair Afzal over 7 years
    My simulator was not showing up after running the app. So your method worked like a charm for me.
  • Evgeny Karkan
    Evgeny Karkan over 7 years
    Thanks for drag and drop tip, did not know that.
  • sn0b4ll
    sn0b4ll over 7 years
    Folder changed to /Users/<User>/Library/Developer/Xcode/DerivedData for me with the latest XCode-Version. The setting can be viewed/changed at "File" -> "Project Settings" in XCode.