Code Signing Error - Verify the value of the CODE_SIGN_ENTITLEMENTS

守給你的承諾、 提交于 2020-02-25 08:32:34

问题


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


回答1:


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.




回答2:


I know you've asked this 6 month ago, but maybe for someone this will be useful. I got this error message when in my entitlement were added Push Notifications but they were disabled in Capabilities. So I've just turned them on and everything started working.



来源:https://stackoverflow.com/questions/53143573/code-signing-error-verify-the-value-of-the-code-sign-entitlements

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!