Xcode签名失败命令/usr/bin/codesign失败,退出代码为1 [英] Xcode Signing Failed Command /usr/bin/codesign failed with exit code 1

查看:144
本文介绍了Xcode签名失败命令/usr/bin/codesign失败,退出代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在阅读命令/usr/bin/codesign失败,退出代码为1",还没有解决.有任何人熟悉此错误,请寻求帮助:(

I've been reading on "Command /usr/bin/codesign failed with exit code 1" and haven't come to solution. Has anyone familiar with this error, please I need help : (

CodeSign /Users/beetsoft/Library/Developer/Xcode/DerivedData/Unity-iPhone-bimrfbszzyhuecbvvjcicqjtcsqb/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/plantapp.app
    cd /Users/beetsoft/TIA/ARSystem/Builds/iOS
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Distribution: pocket queries, Inc. (PXS8PN3EZZ)"
Provisioning Profile: "plantapp_dis"
                      (b7ae657e-8ceb-4d15-8ba3-889429c28b48)

    /usr/bin/codesign --force --sign 0789673E756258B64241FC3775D466CAB50D728D --entitlements /Users/beetsoft/Library/Developer/Xcode/DerivedData/Unity-iPhone-bimrfbszzyhuecbvvjcicqjtcsqb/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/plantapp.app.xcent --timestamp=none /Users/beetsoft/Library/Developer/Xcode/DerivedData/Unity-iPhone-bimrfbszzyhuecbvvjcicqjtcsqb/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/plantapp.app

/Users/beetsoft/Library/Developer/Xcode/DerivedData/Unity-iPhone-bimrfbszzyhuecbvvjcicqjtcsqb/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/plantapp.app: unknown error -1=ffffffffffffffff
Command /usr/bin/codesign failed with exit code 1

推荐答案

如果您在设备上运行,则会由于以下原因而出现此错误:

In case, if you are running on a device it gives this error because of the following reason:

您正在使用的配置文件的签名身份是分发配置文件,正如我从此错误中看到的那样:

The signing identity of provisioning profile you are using is Distribution profile as I can see from this error:

Signing Identity: "iPhone Distribution: pocket queries, Inc. (PXS8PN3EZZ)" Provisioning Profile: "plantapp_dis" (b7ae657e-8ceb-4d15-8ba3-889429c28b48

分发供应配置文件旨在用于存档并将其分发到 Appstore .不适用于在设备上运行.为此,您需要使用开发配置文件.

Distribution provisioning profiles are meant to use for archieving and distributing it to Appstore. Not for running on a device. You need to use development provisioning profile for that purpose.

您可以在构建设置->代码签名身份中更改配置文件,或者 常规->自动代码签名

You can change your provisioning profile in build settings -> code signing identity or General->Automatic code signing

这篇关于Xcode签名失败命令/usr/bin/codesign失败,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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