1

基本上我的项目基于书籍(pdf和xml的组合)。由于某些原因,我们维护了十多个配置文件。当新设备 udid 出现时,我们需要创建另一个配置文件(根据要求)。每次构建时,我都需要在我的 xcode 中放置一些配置和替换书籍,这会导致更多时间。我看到了很多脚本,但所有这些都没有完全填充场景。

问题:

1.是否可以开发另一个应用程序(mac osx)来制作ipa,它接受配置文件的输入,我的代码(ios)和书籍然后编译最终输出为.ipa文件以提供代码?

2.还有其他方法可以减少创建ipa的时间吗?

如果有可能,请给我一些想法以使其成为现实,您的建议对此也更重要。在此先感谢每一个人。

从其他 ipa 文件生成 Ipa 的新问题

我遵循了您的方法,但是谁能告诉我,我创建了一个 ipa 文件,现在我想修改 ipa 的内容以及配置文件是否可能?

4

1 回答 1

2

如果您使用较旧的配置文件创建了 ipa,并且在获取下一个配置文件之间代码没有更改,那么有一种方法可以做到这一点。

You can write a script from following steps:

1) Change the .ipa that you already have to .zip and extract zip contents. This would reveal Payload folder that has YourApp.app folder
2) Right click on YourApp.app folder and show package contents
3) find embedded.mobileprovision and delete it. Drag your new .mobileprovision file into this location and rename it to say embedded.mobileprovision.
4) Find and delete any _CodeSignature or CodeResources files/folders
5) From terminal delete .DS_Store files in Payload and YourApp.app folder
6) Use Codesign utility in /usr/bin/codesign to codesign your .app. Here is command for it:

codesign -f -s "iPhone Distribution: Your company Name" PathToYourApp

In your keychain utility find the certificate name that is used to create the distribution profile and match it to first argument in codesign -f -s
7) finally zip the payload to form an ipa

zip -r YourApp.ipa Payload
于 2011-12-06T19:29:25.617 回答