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

L_C*_*leo 6 xcode provisioning-profile xcode10

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

自动签名无法解决“项目”目标的权利问题。

第二个错误当然是:

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

What I've tried:

  • Switching the provisioning profile from Manual to Automatic and viceversa
  • Cleaning up the Provisioning Profiles inside the Library/MobileDevices and then restarting Xcode
  • Deleting the old app from the iDevice and trying to build it again
  • Turning on and off the Background Modes (I don't have push notifications and In-app purchases)
  • Restarting the computer and the phone (just in case it was that easy)
  • Tried to change the Bundle Identifier
  • Tried to create another team and select that one instead
  • Creating a Project.entitlement empty file

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

Am I missing something?

小智 13

尽管这似乎是苹果公司的问题,但我已经找到了一个对我有用的临时解决方案:

  1. 在XCode中打开您的项目。
  2. 从项目导航器中选择项目,然后从列中选择目标
  3. 单击“ 常规”选项卡,然后在“ 签名”部分下,确保启用了“自动管理签名”
  4. 单击在功能选项卡,并把两个“应用程序组”“钥匙串共享”设置。这可能会引发“自动签名失败”弹出错误,只需单击“取消”即可使其消失。
  5. 这将在项目导航器的项目文件夹中为您生成一个名为nameProject.entitlements的权利文件。
  6. 将此权利文件移到文件夹之外,即项目文件的正下方。
  7. 再次选择目标,然后返回“ 功能”选项卡以同时关闭“应用程序组”“钥匙串共享”设置。这可能会再次引发“自动签名失败”弹出错误,只需单击“取消”即可使其消失。
  8. 现在,在目标上方选择项目,然后转到“ 建筑设置”选项卡。
  9. 向下滚动到Signing标头下的Code Signing Identity设置,然后从每个下拉列表中选择iOS Developer
  10. 在上述“ 签名”标题下,双击“ 代码签名权利”旁边的文本字段,然后输入权利文件的名称nameProject.entitlements

您现在应该不再有该Automatic signing is unable to resolve an issue with the "Project" target's entitlements.错误。希望这会有所帮助!