iOS - 钥匙串(keychain) - 可执行文件的签名无效
<p><p>在我的设备上安装我的应用时出现错误:</p>
<blockquote>
<p>The executable was signed with invalid entitlements</p>
<p>The entitlements specified in your application's Code Signing Entitlements file are
invalid, not permitted, or do not match those specified in your
provisioning profile. (0xE8008016)</p>
</blockquote>
<p>我有一个有效的“Entitlements.plist”文件。如果我从它安装<strong>成功</strong>的文件中删除“钥匙串(keychain)”权利。</p>
<p>我的钥匙串(keychain)权利如下所示:</p>
<pre><code><key>keychain-access-groups</key>
<array>
<string>com.MyCompany.MyApp</string>
</array>
</code></pre>
<p>我的 Bundle 标识符和 AppID 类似:</p>
<blockquote>
<p>com.MyCompany.MyApp</p>
</blockquote>
<p>我的配置文件的 AppID 如下所示:
<a href="/image/pMyhr.png" rel="noreferrer noopener nofollow"><img src="/image/pMyhr.png" alt="AppID"/></a> </p>
<p>如何使用配置文件启用钥匙串(keychain)?或者我在权利文件中遗漏了什么?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>引用:<a href="http://evgenii.com/blog/sharing-keychain-in-ios/" rel="noreferrer noopener nofollow">http://evgenii.com/blog/sharing-keychain-in-ios/</a> </p>
<p>您需要将前缀添加到应用字符串,使其看起来像:</p>
<pre><code><key>keychain-access-groups</key>
<array>
<string>AppPrefix.com.MyCompany.MyApp</string>
</array>
</code></pre></p>
<p style="font-size: 20px;">关于iOS - 钥匙串(keychain) - 可执行文件的签名无效,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/47679049/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/47679049/
</a>
</p>
页:
[1]