首页 > 解决方案 > Flutter + Swift:目标支持文件错误

问题描述

最近我的 Flutter 项目在 Debug 上运行我的应用程序时遇到了问题(它适用于 Release)。我有三个一致的错误,如果我对一个错误使用已知的解决方案,它会直接回到另一个错误。我已经在这个循环中停留了一段时间,我不确定发生了什么。总的来说,我对 Swift 和 Flutter 还很陌生,感谢您的帮助。

错误一:

 error: Unable to load contents of file list: '/Target Support
    Files/Pods-Runner/Pods-Runner-frameworks-Debug-input-files.xcfilelist' (in target 'Runner' from project 'Runner')
    error: Unable to load contents of file list: '/Target Support
    Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist' (in target 'Runner' from project
    'Runner')

对于上述错误,已知的解决方案是删除 Xcode 中的 Input File Lists 选项,如果我这样做,这会导致我直接进入以下错误:

flutter/packages/flutter_tools/bin/xcode_backend.sh: No such file or directory

对我有用的上述错误的解决方案是将Debug Profile下更改ProjectGenerated. 这解决了错误,但导致我:


The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.

运行 pod install 后,Error 2重新出现。

标签: swiftfluttercocoapods

解决方案


推荐阅读