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

后端 未结 13 1152
无人及你
无人及你 2020-12-08 04:40

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

相关标签:
13条回答
  • 2020-12-08 05:00

    For 2020 ..

    Incredibly, Apple still have not fixed this in Xcode 11 onwards ...

    The usual fix is the @CodeBrew solution above:

    "turn on Push Notification in the target's Capabilities tab then turn it off ... this error goes away.

    It's that easy (usually).

    0 讨论(0)
  • 2020-12-08 05:06

    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

    0 讨论(0)
  • 2020-12-08 05:07

    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.

    0 讨论(0)
  • 2020-12-08 05:12

    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.

    0 讨论(0)
  • 2020-12-08 05:16

    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.

    0 讨论(0)
  • 2020-12-08 05:16

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

    0 讨论(0)
提交回复
热议问题