ios - 代码签名错误 - 验证 CODE_SIGN_ENTITLEMENTS 的值

标签 ios xcode nativescript entitlements code-signing-entitlements

如果我尝试使用 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/

    相关文章:

    ios - SwiftyDropbox getCurrentAccount错误

    android - 无法使用 native 脚本构建,运行和发布android

    nativescript - 在nativescript插件中使用worker的问题

    html - 使用坐标和标签链接到 Apple Maps

    ios - 我想创建自定义表格 View 分隔符,UIlabel 位于两个表格 View 单元格之间,就像 iOS 的日历应用程序

    html - 在 iOS 中输入日期占位符值

    iphone - CABasicAnimation 键

    ios - TableViewCell 重叠文本

    xcode - 如何使 NSViewController 在 Xcode 中位于最顶层?

    javascript - 如何在 NativeScript 中更改 StackLayout 容器的背景颜色?