无法加载文件列表的内容:'/Target Support Files/Pods-Target Name/Pods-Target Name-frameworks-Debug-input-files.xcfilelist'
Unable to load contents of file list: '/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-input-files.xcfilelist'
- 无法加载文件列表的内容:'/Target Support Files/Pods-Target Name/Pods-Target Name-frameworks-Debug-output-files.xcfilelist'
以下是我的 Podfile 的内容,
flutter_application_path = 'flutter module path'
加载File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
目标'Target Name'做
install_all_flutter_pods(flutter_application_path)
结束
我有一个在我的项目中使用的 flutter 模块。因此,为此我正在通过 Podfile 集成那个 flutter 模块。
如果有人想知道如何在iOS项目中嵌入flutter模块,请参考这个link
https://flutter.dev/docs/development/add-to-app/ios/project-setup
我尝试了以下解决方案,
- pod 解体 & pod 安装
- 正在删除 pods 文件夹、podfile.lock 和自动生成的项目-name.xcworkspace。然后 pod install
- 正在删除 Embed Pods Framework->InputFileLists & OutputFileLists->Clean Build 中的条目。 (这样做会给出另一个错误 podfile.lock 文件不同步。请执行 pod install)
- 正在删除派生数据 -> 清理构建。
我正在使用 Xcode 12.2.
提前致谢。
我找到了解决方案。
我们需要在 build-debug.xcconfig 和 build-release.xcconfig 中进行更改。
在 buid-debug.xcconfig 中,进行如下更改,
- 注释此行:#include "../pods-debug.xcconfig"
- 在评论下方添加这一行:#include "../Pods/Target Support Files/Pods-Target Name/Pods-Target Name.debug.xcconfig"
在 buid-release.xcconfig 中,进行如下更改,
- 注释此行:#include "../pods-release.xcconfig"
- 在评论下方添加此行:#include "../Pods/Target Support Files/Pods-Target Name/Pods-Target Name.release.xcconfig"
请注意,我在 Cordova 项目中遇到过这个问题。我还没有在纯原生 ios 项目中尝试过这个解决方案。
在我的例子中,我用新创建的应用程序的 ios 文件夹替换了 ios 文件夹,并调整了对 info.plist 和 project.pbxproj 文件的更改
我收到两个错误,
- 无法加载文件列表的内容:'/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'
以下是我的 Podfile 的内容,
flutter_application_path = 'flutter module path'
加载File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
目标'Target Name'做
install_all_flutter_pods(flutter_application_path)
结束
我有一个在我的项目中使用的 flutter 模块。因此,为此我正在通过 Podfile 集成那个 flutter 模块。
如果有人想知道如何在iOS项目中嵌入flutter模块,请参考这个link https://flutter.dev/docs/development/add-to-app/ios/project-setup
我尝试了以下解决方案,
- pod 解体 & pod 安装
- 正在删除 pods 文件夹、podfile.lock 和自动生成的项目-name.xcworkspace。然后 pod install
- 正在删除 Embed Pods Framework->InputFileLists & OutputFileLists->Clean Build 中的条目。 (这样做会给出另一个错误 podfile.lock 文件不同步。请执行 pod install)
- 正在删除派生数据 -> 清理构建。
我正在使用 Xcode 12.2.
提前致谢。
我找到了解决方案。
我们需要在 build-debug.xcconfig 和 build-release.xcconfig 中进行更改。
在 buid-debug.xcconfig 中,进行如下更改,
- 注释此行:#include "../pods-debug.xcconfig"
- 在评论下方添加这一行:#include "../Pods/Target Support Files/Pods-Target Name/Pods-Target Name.debug.xcconfig"
在 buid-release.xcconfig 中,进行如下更改,
- 注释此行:#include "../pods-release.xcconfig"
- 在评论下方添加此行:#include "../Pods/Target Support Files/Pods-Target Name/Pods-Target Name.release.xcconfig"
请注意,我在 Cordova 项目中遇到过这个问题。我还没有在纯原生 ios 项目中尝试过这个解决方案。
在我的例子中,我用新创建的应用程序的 ios 文件夹替换了 ios 文件夹,并调整了对 info.plist 和 project.pbxproj 文件的更改