为 iPhone 创建 .ipa

发布于 2024-07-29 11:35:15 字数 163 浏览 4 评论 0原文

我为 iPhone 开发了一款应用程序。 构建后,我在构建文件夹中得到了 .app 文件。 我的应用程序名称是Myapp,然后我在build文件夹中得到了Myapp.app文件。

我的问题是我想创建 .ipa 文件。 这是怎么回事..它是为了安装 越狱的iPhone..

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

柠檬心 2024-08-05 11:35:16

签名部分:

非越狱手机需要此部分,其余步骤相同

  1. 打开终端并输入以下命令

codesign -f -s“代码签名证书名称”appNamewithextension

示例
codesign -f -s“iPhone 开发人员:Durai Amuthan”sample.app

  1. 使用以下命令验证其是否已签名

协同设计-验证 AbsolutePath_with_app_name

ipa 创建部分:

方式 1:

1.创建一个名为 Payload 的文件夹,并将 .app 复制到其中

2.压缩它,您将得到 Payload。 zip

3.现在将扩展名从 zip 更改为 ipa 就是这样

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

方式 2

将 .app 拖放到 iTunes 中,这将为您创建 iPa

安装部分:

  • < p>如果您在上一步中尝试过方式 1,则将 .ipa 拖放到 iTunes 中

  • 选择设备在 iTunes 中,单击“安装并应用同步”

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

迷你仙 2024-08-05 11:35:16

请按照以下步骤

  • 操作

    将您的应用程序文件以 zip 格式上传到 www.diawi.com

  • 在网络浏览器中打开 diawi 网址。< /p>

  • 您会在那里找到下载应用程序选项。 下载该文件,它将作为 IPA 下载。

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.
长发绾君心 2024-08-05 11:35:16

另外,如果您想包含徽标文件,请将图标添加到目录中并将其命名为“iTunesArtwork”。 将其与其中包含 .app 文件的 Payload 目录一起压缩。

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.

仲春光 2024-08-05 11:35:15
  1. 创建一个名为Payload的文件夹。
  2. Myapp.app(来自项目的产品)复制到 Payload 目录中。
  3. 右键单击并压缩 Payload 目录。
  4. 将 zip 文件重命名为 Myapp.ipa

**更新** 这个答案很旧了。 现在使用 Xcode 构建 .ipa 档案。 (产品>档案)

  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)

幸福%小乖 2024-08-05 11:35:15

运行脚本

/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

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
韵柒 2024-08-05 11:35:15

使用 Xcode 4,现在有一种更简单的方法:
在菜单栏中,转到产品 > 档案。

Xcode 存档菜单屏幕截图
然后,管理器将在“存档”选项卡中打开,您将能够使用“共享...”按钮保存 IPA。

如果“存档”菜单项被禁用,请确保您将方案设置为iOS 设备,而不是iPhone 模拟器。 不过,您不必插入设备。

我还编写了一个脚本来从命令行执行此操作:xcodearchive。 它的工作方式与 xcodebuild 类似,但生成一个 IPA。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文