Xcode 10.2更新问题 Build system error -1: 无法加载文件列表的内容: input/output xcfilelist

在升级到 Xcode 10.2之后,我得到了2个错误

: : 1: 无法加载文件列表的内容: ‘ xxxxx/Pods/目标支持 文件/Pods-xxxx/Pods-xxxxx-Framework-Debug-input-Files. xcfilelist’ (以「 xxxxx 」为目标)

: : 1: 无法加载文件列表的内容: ‘ xxxxx/Pods/目标支持 文件/Pods-xxxxx/Pods-xxxxx-Framework-Debug-output-Files. xcfilelist’ (以「 xxxxx 」为目标)

我更新了我所有的吊舱和改变建设系统的“遗留建设系统”,但仍然得到相同的建设错误

110068 次浏览

I struggled with this for several hours today and this is what finally worked for me:

  1. sudo gem update cocoapods --pre
  2. pod update
  3. clean
  4. build

From what I've read, this is an issue with the new build process that is enabled by default in Xcode 10.2 though I've not found the workaround clearly documented anywhere yet. There may be a more elegant solution than what I described.

You can just edit your xxxx.xcodeproj/project.pbxproj file and delete the offending lines xxxinput-files.xcfilelist and xxxoutput-files.xcfilelist from the inputFileListPaths() outputFileListPaths() so they're empty again and then save it and rebuild

  1. delete 'Pods/', 'Podfile.lock', 'yourappname.xcworkspace'
  2. pod deintegrate
  3. pod install

it's work for me

I have encountered this problem every time, using the above method to solve, I do not know why, how to completely solve

To illustrate the answer of @nfranzmeier:

Go to your project:

  • Select the right target
  • Build Phases
  • Unfold [CP] Embed Pods Frameworks script phase
  • Remove the files under Input Files Lists and Output Files Lists sections by selecting each of them and clicking on the - button

And you're done!

Input/Output Files Lists sections

This solved my problem:

Open **Terminal**
1) run -> pod deintegrate
2) run -> pod install


In **Xcode**
3) Click Product Menu
4) Keep Pressing Option Button
5) Click Clean Build Folder
6) Run
In my case
-> pod deintegrate
-> pod clean
-> pod install
then rebuild the project works fine.
My XCode = 11.3.1

For me (using Mac Mojave) using the above solutions didn't work..

I manage to successfully overcome this issue by installing RVM on my Mac via:

curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails

As described on this page.

And then re-install cocoapods via:

gem install cocoapods

And lastly run again:

pod install

I hope this helps someone who was stuck endlessly like me :)

For me, this was caused because I was setting up a custom configuration (.xcconfig) file for different environments. I wasn't importing the Pods/Target Support Files/Pods-XXXXXX/Pods-XXXXXX.release.xcconfig into my configuration file.

This guide helped me find the missing step. https://thoughtbot.com/blog/let-s-setup-your-ios-environments

Thanks Patrick.

None of the solutions above worked for me. What did the trick was:

  1. Go to Xcode > Project > Info > Configurations

  2. Set the values for Debug > Pods-XXX.debug and Release = Pods-XXX.release

This solved the issue for me on Xcode 12.0 beta

I have the same issue and do the below steps and now am able to make build successful

  1. go to Project->Configurations and set the valid configuration file for configuration.

  2. if you see already set correct valid configuration file then do pod install

  3. if you are not able see valid configuration file then pod install and Now you can see the valid configuration file just choose the right one now.

Note : I have this issue on Xcode 11.7

Just pod install fixes this.

You don't necessarily want to update your pods (especially if you have not locked in versions explicitly). We had this error after creating a new Scheme.

I had changed the Run Configurations, from: Debug to DEV, but didn't change the Scheme:

On top left, select your project name, next to your device:

enter image description here

Then, select your project and click "Edit"

enter image description here

Last, change from Debug to your desired "Run configuration", in my case was DEV:

enter image description here

Do that, for every single one in the list on the left, but for Profile, leave that one as Release or your equivalent:

enter image description here

In my case the error happened when archiving the app.

The cause was that the wrong build configuration was selected in the build scheme. This happened after introducing xcconfig-files for staging environment.

How i fixed it:

  • select the build scheme in Xcode (next to the "play" button)
  • select product -> scheme -> edit scheme
  • check if the correct build scheme is selected

see here: enter image description here

Change build configuration from release mode to debug mode.

cd ios

rm Podfile.lock

edit Podfile as below
# Uncomment this line to define a global platform for your project
platform :ios, '10.0'
>> Uncommented and bumped the version to 10

flutter clean

flutter pub get

pod repo update

pod update

These are the steps that worked for me:

  1. In the terminal, inside of project document, type:

    pod update

  2. If pod is not found, you should install Cocoapods:

    sudo gem install cocoapods

  3. If it returns a ruby/gem error, you should install (or reinstall) Ruby:

    curl -L https://get.rvm.io | bash -s stable

    rvm install ruby-2.7.2

    sudo gem install cocoapods

  4. Try to update pods again, and when it is finished, open .xcworkspace file.

I solve the cloud_firestore not found the issue as well by this after integrating a new version of that cloud_firestore. (optional) update the podfile with the required version of cloud_firestore for fast compiling (saves 500k+ lines of execution).

delete 'Pods/', 'Podfile.lock', 'yourappname.xcworkspace'

pod deintegrate

pod install

This worked out for me:

cd ios && pod deintegrate

pod install

Then go ahead and rerun your project

If still have this problem and using flutter, you should open Runner Info Tab (in Xcode) set configuration file to None. then run pod deintegrate pod install.

I resolved this issue with....

  1. Go to your Targets in xcode
  2. Go to Build Phases
  3. Next go to Run Script and check it has any files in input file lists or output file lists
  4. Now, Remove files (input-files.xcfilelist / output-files.xcfilelist) using symbol - from Input file Lists and Output file Lists respectively
  1. Try to go to your project directory.
  2. Navigate to /ios
  3. Remove Podfile.lock
  4. Run project