Automatic signing is unable to resolve an issue with the "projectName" target's entitlements file
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.
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, 2020Comments
-
Mohan Gopi almost 4 years
I am new to mac and i am getting this error as below
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
-
MichaelG over 6 yearsRan 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 over 6 yearsI have no idea why this fixed it.. but it did. Many thanks.
-
mastro35 over 6 yearsThanks for sharing it
-
AsyncTask about 6 yearsit works for nativescript project also! you saved my night! Thanks
-
JanithaR about 6 yearslol 3 days wasted and this was the solution. How come Push Notifications got unticked in the first place I never know.
-
Kip about 6 yearsThis worked for me too-- just turn push notifications on and back off.
-
Chris Livdahl about 6 yearsThis 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 almost 6 yearsYou save me to send to the trash a complete day! Tnks!
-
James Nguyen over 5 yearsawesome. It's problem with not synchronous entilements
-
L.D over 5 yearsI had the same issue twice across two different projects, similar circumstances, and different Xcode versions. Worked both times.
-
Fattie over 5 yearsTHAT'S A REALLY CLEVER TIP !
-
GeneCode about 5 yearsTypical Apple bull crap.
-
mxch about 5 yearsI tested many things but this was the only thing that worked for me. Thanks!
-
butter_baby about 5 yearsAnd this was the silver bullet. Thanks!
-
ankitjain11 about 5 yearsWoah! I could never think this will actually sole the problem. Thanks a ton. almost 3 days wasted. Thanks!
-
Chuck Boris about 5 yearsWorked. It creates .entitlements file so that's probably why.
-
Swissdude almost 5 yearsYou just saved my life ;)
-
Stunner over 4 yearsWorked when encountering this issue when submitting an app through Xcode 10.3 (and 11.1).
-
Ahmed Khalaf over 4 yearsStill works with Xcode 11.3. This is embarrassing, Apple -_-