我尝试归档一个项目,但我收到此错误命令/ usr / bin / codesign失败,退出代码1

时间:2018-01-16 09:39:04

标签: xcode app-store xcode8

我尝试运行prog:

CodeSign /Users/admin/Library/Developer/Xcode/DerivedData/POC2-byrqqhzjppbjxjemdbcmskhttxdm/Build/Products/Debug-iphoneos/POC2.app/Frameworks/MicroBlink.framework

cd /Users/admin/Documents/Development/POC2
    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: **************name ***** (********)"

    /usr/bin/codesign --force --sign 4070CCDBD98188BA13DE80C8A094CCDFAC2A2E4C --preserve-metadata=identifier,entitlements,flags --timestamp=none /Users/admin/Library/Developer/Xcode/DerivedData/POC2-byrqqhzjppbjxjemdbcmskhttxdm/Build/Products/Debug-iphoneos/POC2.app/Frameworks/MicroBlink.framework

/Users/admin/Library/Developer/Xcode/DerivedData/POC2-byrqqhzjppbjxjemdbcmskhttxdm/Build/Products/Debug-iphoneos/POC2.app/Frameworks/MicroBlink.framework: replacing existing signature

/Users/admin/Library/Developer/Xcode/DerivedData/POC2-byrqqhzjppbjxjemdbcmskhttxdm/Build/Products/Debug-iphoneos/POC2.app/Frameworks/MicroBlink.framework: unknown error -1=ffffffffffffffff

Command /usr/bin/codesign failed with exit code 1

1 个答案:

答案 0 :(得分:-1)

确保您拥有iTunes连接配置文件&尝试创建一个名称相同的应用程序在那里建立设置&然后尝试归档您的项目,因为有时开发者帐户与应用程序的配置文件不匹配,那么您可能会收到此错误。

你必须去iTunes&创建个人资料&给它起与项目建设者相同的名称。然后尝试从Xcode验证存档项目。

如果验证成功,那么您可以将其提交到应用商店&如果没有让我知道您在验证应用程序时遇到的错误,以便我们可以更深入地了解。