XCode - 无法注册包标识符

XCode - Failed to register bundle identifier

我开始使用新的 Macbook Pro,并打开了我在 OneDrive 上的一个 XCode 项目。当我尝试 运行 它时,出现以下错误

Signing for "Project5" requires a development team. Select a development team in the Signing & Capabilities editor.

我检查了“签名和功能”下的哪些设置,我注意到它缺少“团队”。所以我用我的 Apple ID 创建了一个。我再次尝试 运行,这次我遇到了两个错误

Failed to register bundle identifier: The app identifier "com.example.Project5" cannot be registered to your development team because it is not available. 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'.

在这一点上我不是 100% 明白问题出在哪里。我也尝试 运行 它勾选了“自动管理签名”,但它要求我提供“配置文件”。我在 Google 上搜索,但我找到的解决方案并没有帮助我解决这个问题。关于如何解决这个问题的任何想法?我错过了什么?

谢谢。

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