gpt4 book ai didi

ios - 如何修复 "Command/usr/bin/codesign failed with exit code 1"错误

转载 作者:行者123 更新时间:2023-12-01 16:22:11 26 4
gpt4 key购买 nike

我正在尝试对我的第一个应用程序进行代码签名,但我无法编译它,它一直给我 Command /usr/bin/codesign failed with exit code 1错误

要对应用程序进行代码签名,我按照此链接上的教程进行操作:

https://ioscodesigning.com/generating-code-signing-files/

我已经检查了我的钥匙串(keychain)是否有重复的证书,清除了我的派生数据,并在build设置中选择了我的配置文件。不太明白 Info.plist s 和捆绑包,因此其中之一可能有问题,但我不确定。

我还尝试了下面关于应用程序签名身份的第一个答案。添加我的配置文件后,错误来自

CodeSign /Users/myname/Library/Developer/Xcode/DerivedData/See_and_Say-eyscdjurjndlatcstdhogblpvxxb/Build/Products/Debug-iphonesimulator/See\ and\ Say.app
cd "/Users/myname/Desktop/See and Say"
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity: "-"

/usr/bin/codesign --force --sign - --entitlements /Users/myname/Library/Developer/Xcode/DerivedData/See_and_Say-eyscdjurjndlatcstdhogblpvxxb/Build/Intermediates.noindex/See\ and\ Say.build/Debug-iphonesimulator/See\ and\ Say.build/See\ and\ Say.app.xcent --timestamp=none /Users/myname/Library/Developer/Xcode/DerivedData/See_and_Say-eyscdjurjndlatcstdhogblpvxxb/Build/Products/Debug-iphonesimulator/See\ and\ Say.app

/Users/myname/Library/Developer/Xcode/DerivedData/See_and_Say-eyscdjurjndlatcstdhogblpvxxb/Build/Products/Debug-iphonesimulator/See and Say.app: Is a directory
Command /usr/bin/codesign failed with exit code 1


CodeSign /Users/myname/Library/Developer/Xcode/DerivedData/See_and_Say-eyscdjurjndlatcstdhogblpvxxb/Build/Products/Debug-iphoneos/See\ and\ Say.app
cd "/Users/myname/Desktop/See and Say"
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 Developer: Certificate Name (5DTU5WC6AS)"
Provisioning Profile: "Provisioning Profile Name"
(bc4a4413-f6da-4433-9525-59daf158ed15)

/usr/bin/codesign --force --sign 1CC2A9F98E64BE37CA2AAFB31DD68558C185C72A --entitlements /Users/myname/Library/Developer/Xcode/DerivedData/See_and_Say-eyscdjurjndlatcstdhogblpvxxb/Build/Intermediates.noindex/See\ and\ Say.build/Debug-iphoneos/See\ and\ Say.build/See\ and\ Say.app.xcent --timestamp=none /Users/myname/Library/Developer/Xcode/DerivedData/See_and_Say-eyscdjurjndlatcstdhogblpvxxb/Build/Products/Debug-iphoneos/See\ and\ Say.app

/Users/myname/Library/Developer/Xcode/DerivedData/See_and_Say-eyscdjurjndlatcstdhogblpvxxb/Build/Products/Debug-iphoneos/See and Say.app: Is a directory
Command /usr/bin/codesign failed with exit code 1

任何想法是什么问题?

最佳答案

您的问题可能是由您选择的错误签名身份引起的

Signing Identity: "-"



似乎是无效的签名身份

尝试在项目的签名设置中选择有效的签名身份:

目标build设置 -> 签名

关于ios - 如何修复 "Command/usr/bin/codesign failed with exit code 1"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54001038/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com