Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Code Signing Error - Verify the value of the CODE_SIGN_ENTITLEMENTS

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? :-)

like image 337
J.Root Avatar asked Nov 04 '18 17:11

J.Root


2 Answers

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.

like image 161
Reitenator Avatar answered Oct 19 '22 00:10

Reitenator


Xcode 12

For me, this error happened because I have moved .entitlements file inside a group.

To solve it:

  1. Open Settings tab.

  2. Go to Signing section.

  3. Update value of Code Signing Entitlements to the .entitlements file current path.

For example:

My .entitlements is located here:

enter image description here

So, the path should be as follows:

enter image description here

like image 36
Essam Fahmi Avatar answered Oct 18 '22 22:10

Essam Fahmi