自动签名无法解决“项目"问题目标的权利 [英] Automatic signing is unable to resolve an issue with the "Project" target's entitlements

查看:68
本文介绍了自动签名无法解决“项目"问题目标的权利的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确实检查了堆栈溢出中已解决的关于同一问题的所有可能问题.我知道已经提出了数百万个与我完全相同的问题,但我尝试了这些问题的答案中的所有建议,但 Xcode 仍然给我带来问题.所以和往常一样,第一个错误是:

I've literally checked every possible question in stack overflow that have been solved about the same problem. I know that millions of questions exactly the same as mine have been asked, but I tried all the suggestions in the answers of those questions but Xcode is still giving me problems. So as always the first error is:

自动签名无法解决项目"目标的权利问题.

Automatic signing is unable to resolve an issue with the "Project" target's entitlements.

第二个错误当然是:

供应配置文件iOS 团队供应配置文件:com.badubadu.WeatherApp"不包括应用程序标识符和钥匙串访问组权利.

Provisioning profile "iOS Team Provisioning Profile: com.badubadu.WeatherApp" doesn't include the application-identifier and keychain-access-groups entitlements.

我尝试过的:

  • 将配置文件从手动切换到自动,反之亦然
  • 清理库/移动设备中的配置文件,然后重新启动 Xcode
  • 从 iDevice 中删除旧应用并尝试重新构建它
  • 打开和关闭后台模式(我没有推送通知和应用内购买)
  • 重启电脑和手机(以防万一)
  • 尝试更改捆绑标识符
  • 尝试创建另一个团队并选择该团队
  • 创建 Project.entitlement 空文件

无论如何这些都不起作用,而且很烦人,直到现在我只需点击构建应用程序,它就会在我的手机上构建它

None of this worked anyways, and it's so annoying that until now I could've simply click build the app and it would have built it on my phone

我错过了什么吗?

推荐答案

虽然这似乎是 Apple 的问题,但我已经找到了一个对我有用的临时解决方案:

Although this seems to be an issue with Apple, I've been able to find a temporary solution which has worked for me:

  1. 在 Xcode 中打开您的项目.
  2. 从项目导航器中选择您的项目,然后从列中选择您的目标.
  3. 点击常规标签,然后在签名部分下,确保自动管理签名"已启用.
  4. 点击功能标签并打开应用组"钥匙串共享"设置.这可能会引发 自动签名失败" 弹出错误,只需单击取消即可使其消失.
  5. 这应该会在您的项目导航器的项目文件夹中为您生成一个名为 nameProject.entitlements 的权利文件.
  6. 将此权利文件移动到外部文件夹,就在您的项目文件下方.
  7. 再次选择您的目标并返回功能标签以关闭应用组"钥匙串共享"" 设置.这可能会再次引发 自动签名失败" 弹出错误,只需单击取消即可使其消失.
  8. 现在选择目标上方的项目,然后转到建筑设置标签.
  9. 向下滚动到签名标题下的代码签名标识设置,然后从每个下拉菜单中选择iOS开发人员.
  10. 在上述签名标题下,双击代码签名权利旁边的文本字段,然后输入您的权利文件的名称,nameProject.entitlements.
  1. Open your project in Xcode.
  2. Select your project from the project navigator and then select your target from the column.
  3. Click on the General tab and under the Signing section, make sure "Automatically manage signing" is enabled.
  4. Click on the Capabilities tab and turn On both the "App Groups" and "Keychain Sharing" settings. This might raise an "Automatic signing failed" popup error, just click cancel to make it go away.
  5. This should generate a entitlements file for you named nameProject.entitlements in the project folder of your project navigator.
  6. Move this entitlements file outside of the folder, just below your project file.
  7. Select your target again and return to the Capabilities tab to turn Off both the "App Groups" and "Keychain Sharing" settings. This again might raise an "Automatic signing failed" popup error, just click cancel to make it go away.
  8. Now select your project above the target and go to Building Settings tab.
  9. Scroll down to the Code Signing Identity setting under the Signing header and select iOS Developer from each drop down.
  10. Under the above Signing header, double click the text field beside the Code Signing Entitlements and enter the name of your entitlements file, nameProject.entitlements.

您现在应该不再有自动签名无法解决项目"目标的权利问题.错误.希望这会有所帮助!

You should now no longer have the Automatic signing is unable to resolve an issue with the "Project" target's entitlements. error. Hopefully this helps!

这篇关于自动签名无法解决“项目"问题目标的权利的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆