代码签名错误 - 验证 CODE_SIGN_ENTITLEMENTS 的值 [英] Code Signing Error - Verify the value of the CODE_SIGN_ENTITLEMENTS

查看:281
本文介绍了代码签名错误 - 验证 CODE_SIGN_ENTITLEMENTS 的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我尝试使用来自 sidekick 的云服务编译 IOS-Nativescript-App,我会收到此错误:

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

(CLI) 代码签名错误:无法打开文件 \"/tmp/builds/_/27e1345b5c089d99eb18995c590617489875f779/5.0.0/5.0.0/APPNAME/platforms/ios/APPNAME\APPNAME.entitlements\"验证目标 \"APPNAME\" 和构建配置 \"Debug\" 的 CODE_SIGN_ENTITLEMENTS 构建设置的值是否正确,以及该文件是否存在于磁盘上.

(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] 代码签名错误:SDK 'iOS 11.4' 中的产品类型应用程序"需要代码签名

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

我在 Windows 系统上使用 nativescript - 所以我没有在本地运行 xcode...

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

我的 APPName.entitlement-File 如下所示:

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

推荐答案

我也遇到了这个问题,但有一个小问题.我认为它发生的原因如下:

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

  1. 我添加了推送通知"功能
  2. 我删除了权利文件(将其移至垃圾箱),这是我添加推送通知"功能时添加的文件

当我这样做时,一段时间后出现错误.

When I did this the error appeared after a while.

为了解决这个问题,我进入了"Build Settings" 展开了"Signing" 标签并删除了一行说"Code签署权利"

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

这是在 Xcode 11 中完成的.

This was done in Xcode 11.

这篇关于代码签名错误 - 验证 CODE_SIGN_ENTITLEMENTS 的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆