Xcode签名失败命令/ usr / bin / codesign失败,退出代码为1

时间:2017-11-23 02:56:36

标签: ios iphone xcode

我一直在阅读" Command / usr / bin / codesign失败,退出代码为1"并且没有解决方案。有没有人熟悉这个错误,请我帮忙:(

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

4 个答案:

答案 0 :(得分:0)

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

您正在使用的配置文件的签名标识是分发配置文件,我可以从此错误中看到:

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

分发配置文件旨在用于提升并将其分发到 Appstore 。不适用于在设备上运行。您需要使用开发配置文件来实现此目的。

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

答案 1 :(得分:0)

CHECK

  • 的Xcode!检查"目标"上的证书。 - > "构建设置" - > "代码签名身份"
  • 的Xcode!检查"目标"上的配置个人资料 - > "构建设置" - > "供应"
  • 钥匙扣!检查证书是否拥有私钥
  • 检查从证书创建的配置

重新启动Xcode Clean并再次构建希望你没问题

答案 2 :(得分:0)

对我来说,将Xcode和Mac OSX更新到最新版本解决了签名问题。

答案 3 :(得分:0)

这个对我有用:

1)运行“钥匙串访问”

2)选择带有开发证书的钥匙串

3)锁定它(通过菜单),然后将其解锁

4)瞧!它应该可以工作