Create .ipa for iPhone

做~自己de王妃 提交于 2019-12-03 02:01:51

问题


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..


回答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)




回答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



回答3:


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


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.




回答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




回答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.



回答6:


Also, if you want to include the logo file, add the icon to the directory and name it "iTunesArtwork". compress that along with the Payload directory that has the .app file in it.



来源:https://stackoverflow.com/questions/1191989/create-ipa-for-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!