Xcode12.2集成Flutter模块时Pods相关xcfilelist加载失败如何解决?
iOS集成Flutter模块xcfilelist文件加载失败构建报错
报错详情
- 无法加载文件列表内容:
/Target Support Files/Pods-Target Name/Pods-Target Name-frameworks-Debug-input-files.xcfilelist - 无法加载文件列表内容:
/Target Support Files/Pods-Target Name/Pods-Target Name-frameworks-Debug-output-files.xcfilelist
项目基础信息
- 集成场景:原生iOS项目嵌入本地Flutter模块,通过CocoaPods完成模块集成配置
- 当前Podfile配置:
flutter_application_path = 'flutter module path' load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb') target 'Target Name' do install_all_flutter_pods(flutter_application_path) end
- 开发环境:Xcode 12.2
已验证无效的修复操作
- 执行
pod deintegrate与pod install操作 - 删除Pods文件夹、Podfile.lock、自动生成的project-name.xcworkspace文件后,重新执行
pod install - 清空「Embed Pods Frameworks」配置项中原有的InputFileLists与OutputFileLists条目后执行清理构建,触发新报错:Podfile.lock文件未同步,需执行pod install
- 删除DerivedData目录后执行清理构建
内容的提问来源于stack exchange,提问作者Yash Jadhav
相关产品推荐
相关产品推荐

