iosswiftxcodeprovisioning-profilebundle-identifier

XCode - Failed to register bundle identifier


I started using a new Macbook Pro, and I opened an XCode project I had on OneDrive. When I try to run it, I get the error below

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

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. 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. 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'.

At this point I am not 100% to understand which is the problem. 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.


Solution

  • Change "com.example.Project5" to "com.YourDevName.YourNameProject"