【发布时间】:2020-04-13 17:44:25
【问题描述】:
由于这个“代码签名”错误,我已经尝试在 iOS 中运行我的颤振项目 2 天了,但没有运气。我试图在网上搜索,但没有任何效果。 到目前为止我所尝试的是 1.卸载xCode和flutter重新安装 2.清理Xcode 3. 在这篇文章中尝试了来自 cmets 的不同提示:Xcode Signing Failed Command /usr/bin/codesign failed with exit code 1 这是 xcode 控制台中的错误输出。
CodeSign /Users/user2020/Library/Developer/Xcode/DerivedData/Runner-epqpftwmoicslfeecsrrgqoweeja/Build/Products/Debug-iphonesimulator/ExitNews.app
cd /Users/user2020/Documents/LatestApp/ios
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/user2020/Library/Developer/Xcode/DerivedData/Runner-epqpftwmoicslfeecsrrgqoweeja/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/ExitNews.app.xcent --timestamp=none /Users/user2020/Library/Developer/Xcode/DerivedData/Runner-epqpftwmoicslfeecsrrgqoweeja/Build/Products/Debug-iphonesimulator/ExitNews.app
/Users/user2020/Library/Developer/Xcode/DerivedData/Runner-epqpftwmoicslfeecsrrgqoweeja/Build/Products/Debug-iphonesimulator/ExitNews.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1
【问题讨论】: