如果我尝试使用 sidekick 的云服务编译 IOS-Nativescript-App,我会收到此错误:
(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'
我在 Windows 系统上使用 nativescript - 所以我没有在本地运行 xcode...
我的 APPName.entitlement-File 如下所示:
<?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>
你的解决方案是什么? :-)
最佳答案
我也遇到了这个问题,但有一个小转折。我认为它发生的原因如下:
当我这样做时,错误会在一段时间后出现。
为了修复它,我进入了
"Build Settings"
展开"Signing"
标签和 已删除 这条线说"Code Signing Entitlements"
这是在 Xcode 11 中完成的。
关于ios - 代码签名错误 - 验证 CODE_SIGN_ENTITLEMENTS 的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53143573/