如何解决flutter iOS框架错误?

how to solve flutter iOS framework error?

提问人:Tuent Farst 提问时间:1/2/2023 更新时间:1/2/2023 访问量:47

问:

在 iOS 模拟器上在 flutter 中运行应用程序时,出现此错误

** BUILD FAILED **
Xcode's output:
↳
    Writing result bundle at path:
        /var/folders/_q/npnlj1jx73dbftdw4k23clvm0000gn/T/flutter_tools.laUDdB/flutter_ios_build_temp_dirp6AQZ0/temporary_xcresult_bundle
    ld: framework not found Flutter
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    note: Building targets in dependency order
    warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
    warning: Run script build phase 'Thin Binary' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Runner' from project 'Runner')
    Result bundle written to path:
        /var/folders/_q/npnlj1jx73dbftdw4k23clvm0000gn/T/flutter_tools.laUDdB/flutter_ios_build_temp_dirp6AQZ0/temporary_xcresult_bundle
Error (Xcode): Framework not found Flutter

Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max.
Exited

我尝试了 flutter clean 和 flutter pub get,但没有任何改变

iOS Flutter 错误处理 框架

评论

0赞 Rahul 1/2/2023
如果iOS端没有变化,我会说删除iOS文件夹并运行flutter create命令再次生成iOS文件夹。
0赞 Tuent Farst 1/2/2023
现在没有变化,这是错误:运行脚本构建阶段“瘦二进制文件”将在每次构建期间运行,因为它没有指定任何输出。若要解决此警告,请将输出依赖项添加到脚本阶段,或通过在脚本阶段取消选中“基于依赖项分析”来将其配置为在每个生成中运行。

答: 暂无答案