简体   繁体   English

旧的配置文件过期后,将新的配置文件分配给 ipa

[英]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:您有几种选择来执行此操作:

  1. The easiest solution is to use the fastlane's resign tool .最简单的解决方法是使用fastlane的resign tool

  2. 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)。

  1. prepare a directory,准备一个目录,
  2. add your old ipa file, a new provisioning profile (.mobileprovision) and a downloaded shell script to the directory,将旧的 ipa 文件、新的配置文件 (.mobileprovision) 和下载的 shell 脚本添加到目录中,
  3. open a terminal in the directory,在目录中打开一个终端,
  4. add permissions to the script in the terminal using the command使用命令为终端中的脚本添加权限
chmod 755 resign-ios-app
  1. call the script with 3 or 4 parameters: 1- the path of the old ipa file, 2- the path of the new provisioning profile, 3- the name of the distribution certificate in the Keychain, 4 is optional - the new bundle identifier.使用 3 或 4 个参数调用脚本:1- 旧 ipa 文件的路径,2- 新配置文件的路径,3- 钥匙串中分发证书的名称,4 是可选的 - 新包标识符。
./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.

相关问题 iOS:在供应配置文件更新后,是否可以再次安装旧的.ipa文件 - IOS: Is it possible to install the old .ipa file again after the renewal of Provision profile 正在创建ipa,未找到配置文件 - creating ipa , provision profile not found 在新Mac上创建ipa而不从旧Mac导出开发者资料 - Creating ipa on new mac without exporting developer profile from old mac 在Enterprise iOS应用中,如何在现有配置文件过期后替换设备上的* .mobileprovision文件,但又不重新签名IPA? - In an Enterprise iOS app, how to replace the *.mobileprovision file on device after existing profile expired, but without re-signing the IPA? iReSign:放弃使用较旧(现已过期)的配置文件创建的IPA - iReSign: Resigning IPA which was created with older (now expired) provisioning profile 使用过期的配置文件和有效的证书重新签署ipa - Re-signing ipa with expired provisioning profile and with a valid certificate 在批准证书后刷新iOS配置文件 - Refreshing iOS Provision Profile after Certificate is Approved 在将新的UDID添加到供应配置文件后,我是否需要重建IPA? - After adding new UDIDs to provisioning profile, do I need to rebuild the IPA? 在另一个iPad和Mac上通过iTunes安装.ipa文件和配置文件时出错 - Getting error while installing .ipa file and provision profile through iTunes on another ipad and mac 我创建新的配置文件想要在xcode项目中更新它 - I create new provision profile want to update it in xcode project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM