【问题标题】:Flutter Failed to build iOS app ld: truncated fat fileld: truncated fat fileFlutter 无法构建 iOS 应用 ld: truncated fat fileld: truncated fat file
【发布时间】:2020-11-17 11:16:51
【问题描述】:

当我尝试归档 Flutter IOS 版本时,我遇到了错误。 我使用 pod update 更新了 pod 并删除了可可缓存。 我使用flutter cleanflutter build ios 重建但仍然出现此错误

Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    ld: truncated fat file. Slice from 208257024 to 389831920 is past end of file with length 382730240 file
    '/Users/bilalrabbi/Desktop/tools/project11/ios/Flutter/Flutter.framework/Flutter' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Using new build system
    note: Building targets in parallel
    note: Planning build
    note: Constructing build description

【问题讨论】:

    标签: ios xcode flutter


    【解决方案1】:

    通过运行以下命令,我能够构建和归档应用程序。我在这个链接上找到了这些命令:https://github.com/flutter/flutter/issues/12725

    flutter clean
    rm -rf ios/Flutter/App.framework ios/Flutter/Flutter.framework
    rm -rf /Users/username/Library/Developer/Xcode/DerivedData/Runner-gdzryurgzchazzddeyhdklwmefdq
    flutter build ios
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-16
      • 1970-01-01
      • 1970-01-01
      • 2021-02-27
      • 2022-12-27
      • 1970-01-01
      • 1970-01-01
      • 2022-12-27
      相关资源
      最近更新 更多