繁体   English   中英

iOS-如何为IPA文件签名?

[英]IOS - How to resign an ipa file?

我尝试辞职.ipa文件,但出现了一些问题。 我将项目存档并导出以进行临时部署,然后按照本教程进行操作: https : //sholtz9421.wordpress.com/2012/06/08/digitally-resigning-ipa/ 在安装过程中,我遇到以下错误:“应用程序缺少应用程序标识符授权。” 因此我创建了一个“ entitlements.plist”文件,并尝试使用--entitlements参数退出

codesign -f -v -s "MyIdentity" Payload/SampleApp.app --entitlements entitlements.plist

现在,当我尝试安装.ipa文件时,出现以下错误:“无法验证代码签名..(可执行文件已使用无效的权利进行了签名)。”

我的entitlements.plist文件是这样的:

<?xml version="1.0" encoding="UTF-8"?>
   <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
   <plist version="1.0">
   <dict>
    <key>application-identifier</key>
    <string>{team-identifier}.{bundleId}</string>
    <key>aps-environment</key>
    <string>production</string>
    <key>beta-reports-active</key>
    <true/>
    <key>com.apple.developer.associated-domains</key>
    <string>*</string>
    <key>com.apple.developer.team-identifier</key>
    <string>{team-identifier}</string>
    <key>get-task-allow</key>
    <false/>
    <key>keychain-access-groups</key>
    <array>
       <string>{team-identifier}.*</string>
    </array>
    </dict>
    </plist>

有什么问题的想法吗? 任何帮助表示赞赏。

我找到了一个解决方案:我已经使用IReSign来注销.ipa文件。 正确的entitlements.plist文件是这样的:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>application-identifier</key>
<string>{team-identifier}.{bundleId}</string>
<key>aps-environment</key>
<string>production</string>
<key>com.apple.developer.team-identifier</key>
<string>{team-identifier}</string>
<key>get-task-allow</key>
<false/>
<key>keychain-access-groups</key>
<array>
    <string>{team-identifier}.{bundleId}</string>
</array>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM