Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create .ipa for iPhone

People also ask

Can iPhone run IPA file?

An IPA (iOS App Store package) is an application archive file that contains an iOS app. In simple words, it is a file that can be installed on iOS devices and used as an application.

Can I generate IPA file without developer account?

It will have the option "Use Local singing assets" at the bottom. Select this option & Click Choose. Here you go. The build will be created by Xcode without Apple ID Account.


  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)


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

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.


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


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.