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
Incredibly, Apple still have not fixed this in Xcode 11 onwards ...
"turn on Push Notification in the target's Capabilities tab then turn it off ... this error goes away.
It's that easy (usually).
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
I had the same issue on a multiplatform project (iOS / macOS). In my case the problem was caused because the Code Signing Entitlements
build settings of both the iOS and macOS app referred to the same Entitlements.plist
file that was part of the macOS app. So to fix this I created an empty Entitlements.plist
for iOS and made the iOS build setting refer to this file.
On Xcode 11, make sure to remove this line:
<key>BuildSystemType</key>
<string>Latest</string>
Seems like this was only necessary whe there was two distinct build types and now it just breaks the building.
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.
Under Code Signing Identity
, change iPhone Distribution
to iPhone Developer
for Debug
section.