Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

The second error is of course:

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?

like image 549
L_Cleo Avatar asked Mar 13 '19 16:03

L_Cleo


1 Answers

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

  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!

like image 58
Zameer Avatar answered Jan 03 '23 18:01

Zameer