Code Signing Error - Verify the value of the CODE_SIGN_ENTITLEMENTS

J.Root picture J.Root · Nov 4, 2018 · Viewed 9k times · Source

If i try to compile a IOS-Nativescript-App using cloud-service from sidekick, i get this error:

(CLI) Code Signing Error: The file \"/tmp/builds/_/27e1345b5c089d99eb18995c590617489875f779/5.0.0/5.0.0/APPNAME/platforms/ios/APPNAME\APPNAME.entitlements\" could not be opened. Verify the value of the CODE_SIGN_ENTITLEMENTS build setting for target \"APPNAME\" and build configuration \"Debug\" is correct and that the file exists on disk.

[xcode-build] Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.4'

Im using nativescript on Windowssystem - so i dont have xcode running locally...

My APPName.entitlement-File looks like the following:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>aps-environment</key>
        <string>development</string>
    </dict>

Whats is your solution? :-)

Answer

Reitenator picture Reitenator · Nov 12, 2019

I also got this problem, but with a small twist. I think the reason it happened was the following:

  1. I added capability "push notifications"
  2. I deleted the entitlements file (moved it to trash), which is the file which was added when I added the "push notifications" capability

When I did this the error appeared after a while.

To fix it I went into "Build Settings" expanded the "Signing" tab and removed the line saying "Code Signing Entitlements"

This was done in Xcode 11.