Create .ipa for iPhone

47,996

Solution 1

  1. Create a folder named Payload.
  2. Copy Myapp.app (from products of your project) into the Payload directory.
  3. Right click and Compress the Payload directory.
  4. Rename the zip file to Myapp.ipa.

** Update ** This answer is very old. Use Xcode to build .ipa archives now. (Product > Archive)

Solution 2

Run Script

/bin/sh

mkdir $CONFIGURATION_BUILD_DIR/Payload
cp -R $CONFIGURATION_BUILD_DIR/$PRODUCT_NAME.app $CONFIGURATION_BUILD_DIR/Payload
cp $CONFIGURATION_BUILD_DIR/$PRODUCT_NAME.app/iTunesArtwork $CONFIGURATION_BUILD_DIR
cd $CONFIGURATION_BUILD_DIR
/usr/bin/zip -r $PRODUCT_NAME.ipa Payload iTunesArtwork
rm -rf Payload iTunesArtwork
exit 0

Solution 3

With Xcode 4, there is now a way more easy way:
In the menu bar, go to Product > Archive.

Xcode archive menu screenshot
The organizer will then open in the Archives tab, and you will be able to save an IPA using the Share… button.

If the Archive menu item is disabled, make sure you have the scheme set to iOS device and not the iPhone Simulator. You don't have to have a device plugged in, though.

I also wrote a script to do this from the command line: xcodearchive. It works similar to xcodebuild, but generates an IPA.

Solution 4

Signing Part:

This part is required for non-jailbroken phone and rest of the steps are same

  1. Open Terminal and enter the following commands

codesign -f -s "Code signing certificate name" appNamewithextension

example
codesign -f -s "iPhone Developer: Durai Amuthan" sample.app

  1. Verify it is signed using the following command

codesign -verify AbsolutePath_with_app_name

ipa creation Part:

Way 1:

1.Create a folder named Payload and copy the .app into it

2.compress it and you'll get Payload.zip

3.Now Change the extension from zip to ipa that's it

mkdir Payload
cp -R MyAppName.app Payload/
zip -r -s 64 Payload.zip Payload/
mv Payload.zip MyAppName.ipa

Way 2:

Drag and drop the .app in iTunes that'll create the iPa for you

Installation part:

  • If you had Tried the Way 1 in previous step then Drag and drop the .ipa in iTunes

  • Choose the device in iTunes and click install and apply the sync that's it

Solution 5

Follow the following steps

  • Upload your app file as a zip on www.diawi.com

  • Open the diawi url in your web browser.

  • You will find download application option there. Download the file and it will be downloaded as an IPA.
Share:
47,996

Related videos on Youtube

Admin
Author by

Admin

Updated on July 09, 2022

Comments

  • Admin
    Admin almost 2 years

    I developed one application for iPhone. After I build I got .app file in build folder. My application name is Myapp, then i got Myapp.app file in the build folder.

    My problem is i want to create the .ipa file. how is that.. it is for to install jailbraked iPhone..

  • user160917
    user160917 about 14 years
    Strange, but the folder must be named "Payload", nothing else will work, once you have compressed the file you can name it whatever you want.
  • Tony Eichelberger
    Tony Eichelberger about 14 years
    Yes, I thought that was strange as well.
  • looneydoodle
    looneydoodle over 13 years
    Thanks for this! I ve been going crazy trying to figure this part out!
  • user427969
    user427969 over 11 years
    Manually creating the .ipa file gave error but using the Archives tab it worked perfectly fine. Thanks
  • Valeriy Van
    Valeriy Van over 10 years
    In xcode 4.5 and later in Organizer window in xcode press Distribute button, then choose Save for Enterprise or Ad-Hoc Deployment - then you will be able to generate ipa file.
  • JellicleCat
    JellicleCat almost 9 years
    When I install an ipa which was constructed this way, I find that its icon (on my iPhone) remains grey forever. Trying to run the app on my iPhone does nothing but change the text beneath the icon to 'Installing...' despite the fact that the app ran fine on the simulator in Xcode and iTunes conveyed that it had installed the app successfully. Anyone else experience this? Does running an app like this require jailbreaking?
  • SudoPlz
    SudoPlz over 6 years
    Still works on 2018, and even though I've spent so much time building dev archives, doing that took literally seconds.
  • MacKa
    MacKa about 6 years
    Can someone explain the difference between exporting build from organizer and using this method?