Automatic signing is unable to resolve an issue with the "projectName" target's entitlements file

36,906

Solution 1

I had the same problem in a project that i used push notifications what i did to fix it is : Target-> Capabillities and turned on push notifications .fix

Note: the answer from @codebrew explains this clever fix further.

Solution 2

I was able to resolve this by deleting all my provisional files on my computer (~/Library/MobileDevice/Provisioning Profiles) and restarting Xcode.

Solution 3

I was able to fix this same issue by turning on push notifications and then turning them back off.

Not sure why this works, but in Xcode 9.4.1, and Xcode 10 Beta this fix still works.

Update: This works in Xcode 10.1 & 10.2

Solution 4

Xcode 9 and 10 may pop up this error because it's looking for a entitlements file for the target. You can turn on Push Notification in the target's Capabilities tab then turn it off to create an empty entitlements file for the build, then this error goes away.

Solution 5

Under Code Signing Identity, change iPhone Distribution to iPhone Developer for Debug section.

Share:
36,906
Mohan Gopi
Author by

Mohan Gopi

Each and every end of the day thinking what i have learned today. And Improving my self daily as developer.

Updated on May 14, 2020

Comments

  • Mohan Gopi
    Mohan Gopi almost 4 years

    I am new to mac and i am getting this error as below image

    What should i do i have bought the developer licence and i created the provisioning certificate but still i am facing this issue. i am not sure why i am getting this error any help.

    i have followed this youtube link inorder to create a provisioning profile and distrubution profile https://www.youtube.com/watch?v=Xh2nnjttOwo&t=367s

    UPDATE

    after updateing my buildsettings like this below img

    and i am getting new error like this img

  • MichaelG
    MichaelG over 6 years
    Ran into this on iTunes Connect. Deleted all my PP, restart Xcode, resolved. Oh and I believe this occurred because I added a new device in between Archive builds and then got this issue. Weird.
  • Ash
    Ash over 6 years
    I have no idea why this fixed it.. but it did. Many thanks.
  • mastro35
    mastro35 over 6 years
    Thanks for sharing it
  • AsyncTask
    AsyncTask about 6 years
    it works for nativescript project also! you saved my night! Thanks
  • JanithaR
    JanithaR about 6 years
    lol 3 days wasted and this was the solution. How come Push Notifications got unticked in the first place I never know.
  • Kip
    Kip about 6 years
    This worked for me too-- just turn push notifications on and back off.
  • Chris Livdahl
    Chris Livdahl about 6 years
    This happened to me as well. For an older project that I was updating, I had forgotten to turn on GameCenter in the Capabilities tab.
  • Anibal Itriago
    Anibal Itriago almost 6 years
    You save me to send to the trash a complete day! Tnks!
  • James Nguyen
    James Nguyen over 5 years
    awesome. It's problem with not synchronous entilements
  • L.D
    L.D over 5 years
    I had the same issue twice across two different projects, similar circumstances, and different Xcode versions. Worked both times.
  • Fattie
    Fattie over 5 years
    THAT'S A REALLY CLEVER TIP !
  • GeneCode
    GeneCode about 5 years
    Typical Apple bull crap.
  • mxch
    mxch about 5 years
    I tested many things but this was the only thing that worked for me. Thanks!
  • butter_baby
    butter_baby about 5 years
    And this was the silver bullet. Thanks!
  • ankitjain11
    ankitjain11 about 5 years
    Woah! I could never think this will actually sole the problem. Thanks a ton. almost 3 days wasted. Thanks!
  • Chuck Boris
    Chuck Boris about 5 years
    Worked. It creates .entitlements file so that's probably why.
  • Swissdude
    Swissdude almost 5 years
    You just saved my life ;)
  • Stunner
    Stunner over 4 years
    Worked when encountering this issue when submitting an app through Xcode 10.3 (and 11.1).
  • Ahmed Khalaf
    Ahmed Khalaf over 4 years
    Still works with Xcode 11.3. This is embarrassing, Apple -_-