[英]Command /usr/bin/codesign failed with exit code 1 Xcode CocoaPods
[英]Xcode Signing Failed Command /usr/bin/codesign failed with exit code 1
我一直在閱讀“命令/ 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
萬一,如果您在設備上運行,則會由於以下原因而給出此錯誤:
從此錯誤中可以看到,您正在使用的配置文件的簽名身份是分發配置文件:
Signing Identity: "iPhone Distribution: pocket queries, Inc. (PXS8PN3EZZ)" Provisioning Profile: "plantapp_dis" (b7ae657e-8ceb-4d15-8ba3-889429c28b48
分發供應配置文件旨在用於存檔並將其分發到Appstore 。 不適用於在設備上運行。 為此,您需要使用開發配置文件 。
您可以在構建設置->代碼簽名身份或常規->自動代碼簽名中更改配置文件
校驗
重新啟動Xcode Clean and Build再一次希望您一切正常
對我來說,將Xcode和Mac OSX更新到最新版本可以解決簽名問題。
這個為我工作:
1)運行“鑰匙串訪問”
2)選擇帶有開發證書的鑰匙串
3)鎖定(通過菜單),然后將其解鎖
4)Voilá! 它應該工作
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.