30

XCode Version 10.2.1

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

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

error: Unable to load contents of file list: '/Target Support Files/Pods-SMarket/Pods-SMarket-resources-Debug-input-files.xcfilelist' (in target 'SMarket')

error: Unable to load contents of file list: '/Target Support Files/Pods-SMarket/Pods-SMarket-resources-Debug-output-files.xcfilelist' (in target 'SMarket')

I tried this solution, not working.

I tried to clean, rebuild the project, still failed.

No idea which part generates these errors, please comment if I need to show details of specific files.

My Target -> Build Phases: enter image description here

[CP] Embed Pods Frameworks enter image description here

[CP] Copy Pods Resources enter image description here

Community
  • 1
  • 1
Vanessa Leung
  • 770
  • 1
  • 10
  • 22
  • have you added run script in build phase for any pod? – Mahendra May 16 '19 at 04:21
  • @MahendraGP no, I don't – Vanessa Leung May 16 '19 at 05:13
  • @MahendraGP I have two scripts may be concerned with this issue: `[CP] Embed Pods Frameworks`, `[CP] Copy Pods Resources`. Even though I deleted these two scripts, they will still be generated automatically after I delete the `Pods` folder and `pod install` again. I updated my post for more details about this. – Vanessa Leung May 16 '19 at 05:27

3 Answers3

60
pod deintegrate

then

pod update
Igor Voynov
  • 701
  • 4
  • 3
6

I found out under [CP] Embed Pods Frameworks and [CP] Copy Pods Resources, there're input files and output files sections. Just deleted files in those sections, and it works.

But I still have no idea why this error is generated.

enter image description here

Vanessa Leung
  • 770
  • 1
  • 10
  • 22
0

In my case:

pod deintegrate
pod clean
pod install  

With rebuild, the project works.

My XCode version is 11.3.1

nathan liang
  • 1,000
  • 2
  • 11
  • 22
Mahfuz
  • 63
  • 6
  • "clean" command might not work with old CocoaPod. update your CocoaPod by "sudo gem install cocoapods -v 1.9.1" command. – Mahfuz May 16 '20 at 04:25
  • When I run `pod --version`, it outputs `1.9.1`. It seems I'm running the latest version. – Ky - May 18 '20 at 14:07