Xcode 的 PackageApplication 的替代品是什么? [英] What's the replacement for Xcode's PackageApplication?

查看:27
本文介绍了Xcode 的 PackageApplication 的替代品是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 8.3 PackageApplication 消失了.我确实使用它将 *.app 包/目录转换为 *.ipa 文件(重新签名后):

With Xcode 8.3 PackageApplication is gone. I did use it to convert an *.app package/directory to a *.ipa file (after re-signing):

xcrun -sdk iphoneos PackageApplication -v "MyApp.app" -o "MyApp.ipa"

是否有任何替代品,以便我可以继续将 .app 转换为 .ipa?

Is there any replacement for this, so I can continue to convert .app to .ipa?

推荐答案

显然不需要使用任何其他工具,也不需要更改导致 *.app 包的流程(换句话说:无需使用 xcodebuild -exportArchive).

Apparently there is no need to use any other tool, and it's also not necessary to change the process that leads to the *.app package (in other words: no need to use xcodebuild -exportArchive).

我们所要做的就是压缩 *.app 包:

All we have to do, is to zip that *.app package:

pushd "/build"
mkdir ./Payload
cp -R "$PATH_TO_SIGNED_APP_PACKAGE.app" ./Payload
zip -qyr MyApp.ipa ./Payload
rm -r ./Payload
popd

注意:

  1. 跳转到目标目录,这里是/build.这可确保我们稍后在 zip 存档中没有完整路径.
  2. 创建一个名为 Payload 的文件夹(重要的是,这不能改变)
  3. 将 *.app 包复制到 Payload 文件夹
  4. 压缩文件夹,而不是 *.zip 使用 *.ipa 作为扩展名
  5. 跳回原来的地方
  1. Jump into the target directory, here /build. This ensures we don't have the full path in the zip archive later.
  2. Create a folder named Payload (important, this cannot vary)
  3. Copy the *.app bundle to the Payload folder
  4. Zip the folder and instead of *.zip use *.ipa as extension
  5. Jump back to where you came from

这篇关于Xcode 的 PackageApplication 的替代品是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆