【问题标题】:error: Unable to load contents of file list: '/Target Support Files/Pods-xx/Pods-xx-frameworks-Debug-input-files.xcfilelist' (in target 'xx')错误:无法加载文件列表的内容:'/Target Support Files/Pods-xx/Pods-xx-frameworks-Debug-input-files.xcfilelist'(在目标'xx'中)
【发布时间】:2019-10-03 06:05:54
【问题描述】:

XCode 版本 10.2.1

错误:无法加载文件列表的内容:'/Target Support Files/Pods-SMarket/Pods-SMarket-frameworks-Debug-input-files.xcfilelist'(在目标'SMarket'中)

错误:无法加载文件列表的内容:'/Target Support Files/Pods-SMarket/Pods-SMarket-frameworks-Debug-output-files.xcfilelist'(在目标'SMarket'中)

错误:无法加载文件列表的内容:'/Target Support Files/Pods-SMarket/Pods-SMarket-resources-Debug-input-files.xcfilelist'(在目标'SMarket'中)

错误:无法加载文件列表的内容:'/Target Support Files/Pods-SMarket/Pods-SMarket-resources-Debug-output-files.xcfilelist'(在目标'SMarket'中)

我试过this solution,没有用。

我尝试清理、重建项目,但仍然失败。

不知道是哪个部分产生了这些错误,如果我需要显示特定文件的详细信息,请评论。

我的目标 -> 构建阶段:

[CP] Embed Pods Frameworks

[CP] Copy Pods Resources

【问题讨论】:

  • 您是否在构建阶段为任何 pod 添加了运行脚本?
  • @MahendraGP 不,我没有
  • @MahendraGP 我有两个脚本可能与这个问题有关:[CP] Embed Pods Frameworks[CP] Copy Pods Resources。即使我删除了这两个脚本,但在我再次删除Pods 文件夹和pod install 后,它们仍然会自动生成。我更新了我的帖子以获取有关此的更多详细信息。

标签: ios swift xcode cocoapods


【解决方案1】:
pod deintegrate

然后

pod update

【讨论】:

    【解决方案2】:

    我发现在[CP] Embed Pods Frameworks[CP] Copy Pods Resources 下,有输入文件和输出文件部分。只需删除这些部分中的文件即可。

    但我仍然不知道为什么会产生这个错误。

    【讨论】:

      【解决方案3】:

      在我的情况下 -> pod deintegrate -> pod clean -> pod install
      然后重建项目工程。

      我的 XCode = 11.3.1

      【讨论】:

      • "clean" 命令可能不适用于旧的 CocoaPod。通过“sudo gem install cocoapods -v 1.9.1”命令更新你的 CocoaPod。
      • 当我运行pod --version 时,它会输出1.9.1。看来我正在运行最新版本。
      猜你喜欢
      • 2021-05-17
      • 2021-03-10
      • 2019-11-13
      • 1970-01-01
      • 2020-01-14
      • 2015-04-06
      • 1970-01-01
      • 1970-01-01
      • 2013-03-26
      相关资源
      最近更新 更多