【问题标题】:xcode / flutter Command /usr/bin/codesign failed with exit code 1xcode / flutter 命令 /usr/bin/codesign 失败,退出代码为 1
【发布时间】: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

【问题讨论】:

    标签: xcode flutter


    【解决方案1】:

    这是由于 KeyChain 中的问题造成的 一个快速的解决方法是在 bash 的终端中编写此代码

    xattr -cr .
    

    【讨论】:

      猜你喜欢
      • 2014-07-24
      • 1970-01-01
      • 2011-05-28
      • 2017-01-19
      • 2014-12-24
      • 2011-12-08
      • 2017-03-02
      • 1970-01-01
      • 2015-10-14
      相关资源
      最近更新 更多