[英]assign new provision profile to ipa after the old one is expired
I got an Ipa and the provision profile of the app that is expired, I've created a new provision profile on apple, is there a way to assign the new one to the current Ipa?我有一个 Ipa 并且应用程序的配置文件已过期,我在苹果上创建了一个新的配置文件,有没有办法将新的配置文件分配给当前的 Ipa? without configuring it in xcode无需在 xcode 中配置它
You should be able to swap out the embedded.mobileprovision file in the ipa, then re-sign the app.您应该能够换出 ipa 中的 embedding.mobileprovision 文件,然后重新签署应用程序。 You have a couple of options to do this:您有几种选择来执行此操作:
The easiest solution is to use the fastlane's resign tool .最简单的解决方法是使用fastlane的resign tool 。
You can write a shell script to manually extract the contents of the IPA, replace the provisioning profile, then call codesign to re-sign the binary.您可以编写一个 shell 脚本来手动提取 IPA 的内容,替换配置文件,然后调用 codesign 对二进制文件进行重新签名。 More details can be found here .可以在此处找到更多详细信息。
You can use this shell script (Thank you Daniel Torrecillas).您可以使用此shell 脚本(谢谢 Daniel Torrecillas)。
chmod 755 resign-ios-app
./resign-ios-app 'olderIpaFileName.ipa' 'newProvisioningProfileFileName.mobileprovision' 'Apple Distribution: TeamName (teamID)'
As a result, you get the resigned.ipa file into the directory where the shell script is (it is your working directory from step 1).结果,您将 resigned.ipa 文件放入 shell 脚本所在的目录(这是您在步骤 1 中的工作目录)。
Now you can use the resigned ipa file and delete your work directory from step 1.现在您可以使用重新签名的 ipa 文件并从步骤 1 中删除您的工作目录。
Note: The script creates several subdirectories and plists.注意:该脚本创建了几个子目录和 plist。 They are important only for the script itself.它们仅对脚本本身很重要。 You can delete them.您可以删除它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.