简体   繁体   English

XCode - 无法注册包标识符

[英]XCode - Failed to register bundle identifier

I started using a new Macbook Pro, and I opened an XCode project I had on OneDrive.我开始使用新的 Macbook Pro,并打开了 OneDrive 上的一个 XCode 项目。 When I try to run it, I get the error below当我尝试运行它时,出现以下错误

Signing for "Project5" requires a development team.签署“Project5”需要一个开发团队。 Select a development team in the Signing & Capabilities editor. Select Signing & Capabilities 编辑器中的开发团队。

I checked which were the settings under "Signing and Capabilities" and I noticed it was missing the "Team".我检查了“签名和功能”下的哪些设置,我注意到它缺少“团队”。 So I created one with my Apple ID.所以我用我的 Apple ID 创建了一个。 I try to run it again and I get two errors this time我尝试再次运行它,这次我得到了两个错误

Failed to register bundle identifier: The app identifier "com.example.Project5" cannot be registered to your development team because it is not available.无法注册包标识符:应用程序标识符“com.example.Project5”无法注册到您的开发团队,因为它不可用。 Change your bundle identifier to a unique string to try again.将您的包标识符更改为唯一的字符串以重试。

No profiles for 'com.example.Project5' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'com.example.Project5'.找不到“com.example.Project5”的配置文件:Xcode 找不到与“com.example.Project5”匹配的任何 iOS 应用程序开发配置文件。

At this point I am not 100% to understand which is the problem.在这一点上,我不是 100% 了解问题所在。 I tried also to run it ticking off the "Automatically manage signing", but it asks me for a "Provisioning profile".我也尝试运行它勾选“自动管理签名”,但它要求我提供“配置文件”。 I searched on Google but the solutions I found did not help me to solve this problem.我在谷歌上搜索,但我找到的解决方案并没有帮助我解决这个问题。 Any idea on how to fix this?关于如何解决这个问题的任何想法? I am missing something?我错过了什么?

Thanks.谢谢。

Change "com.example.Project5" to "com.YourDevName.YourNameProject"将“com.example.Project5”更改为“com.YourDevName.YourNameProject”

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

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