xcode flutter 命令 usrbincodesign 失败,退出代码 1

问题描述 投票:0回答:1

我一直试图在iOS中运行我的flutter项目,现在2天了,没有任何运气,因为这个 "代码符号 "错误。我试图在网上搜索,但没有任何工作.我已经尝试到目前为止是1.卸载xCode和flutter,并再次安装它2.清理Xcode3.尝试了不同的提示,从这个帖子的评论:。清理Xcode3.尝试了本帖评论中的不同提示。Xcode Signing Failed Command usrbincodesign 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
xcode flutter
1个回答
0
投票

发生这种情况是由于KeyChain的问题,一个快速的修复方法是在终端的bash中写下这段代码。

xattr -cr .
© www.soinside.com 2019 - 2024. All rights reserved.