IOS - 如何退出 ipa 文件?
<p><p>我尝试退出 .ipa 文件,但遇到了一些问题。
我将项目存档并将其导出以进行临时部署,然后我按照本教程进行操作:<a href="https://sholtz9421.wordpress.com/2012/06/08/digitally-resigning-ipa/" rel="noreferrer noopener nofollow">https://sholtz9421.wordpress.com/2012/06/08/digitally-resigning-ipa/</a> .
在安装过程中,我遇到了这个错误:“应用程序缺少应用程序标识符权利。”所以我创建了一个“entitlements.plist”文件并尝试使用参数--entitlements 辞职</p>
<p><code>codesign -f -v -s "MyIdentity"Payload/SampleApp.app --entitlements entitlements.plist</code></p>
<p>现在,当我尝试安装 .ipa 文件时,出现以下错误:“无法验证代码签名..(可执行文件的签名无效)。”</p>
<p>我的 entitlements.plist 文件是这样的:</p>
<pre><code><?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>
</code></pre>
<p>你知道这个问题吗?任何帮助表示赞赏。 </p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>我找到了解决方案:我使用 IReSign 对 .ipa 文件进行了签名。正确的 entitlements.plist 文件是这样的:</p>
<pre><code><?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>
</code></pre>
<p>
</p></p>
<p style="font-size: 20px;">关于IOS - 如何退出 ipa 文件?,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/44819704/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/44819704/
</a>
</p>
页:
[1]