131

After upgrading to Xcode 10.2 I am getting 2 errors

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

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

I updated all my pod and changed build system to "Legacy Build System" but still getting the same build error

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Diptendu Das
  • 3,990
  • 7
  • 22
  • 38

23 Answers23

153

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.

Marwen Doukh
  • 1,946
  • 17
  • 26
madiver
  • 1,564
  • 1
  • 10
  • 4
  • 2
    Cocoapods 1.7 has been changed to Xcode new build system – mkhoshpour Jul 08 '19 at 08:43
  • 3
    I have this issue, and that solution worked for my local machine, however, this is still happening on the CI build system, any ideas? – Ziv Kesten Aug 29 '19 at 11:54
  • 7
    After running the above command I get. 'Updating installed gems', 'Nothing to update' – Abdullah Khan Jan 25 '21 at 08:26
  • How can i solve this in CI system? Azure pipeline. – M Karimi Jun 23 '22 at 03:05
  • 1
    @MKarimi in my case the issue was related to the configuration being passed to 'xcodebuild' command, it was overriding the one provided in scheme, either remove it or try to match with a valid one – Shaz Aug 03 '22 at 09:32
105
  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

Keuha
  • 295
  • 3
  • 18
symbool
  • 1,077
  • 1
  • 5
  • 4
56

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

Artheyn
  • 1,042
  • 10
  • 7
  • 2
    helped, it's the actual solution – Raheel Sadiq Nov 06 '19 at 09:43
  • 17
    Tried this on Xcode 11.4, Xcode spits "error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation." Running 'pod install' would just put the two file lists back in place. – CodeBrew Apr 19 '20 at 17:18
  • Tried this on Xcode 12.4 Diff: /Podfile.lock: No such file or directory Diff: /Manifest.lock: No such file or directory The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. – HarrisHan Feb 23 '21 at 02:26
  • 1
    This works for me on XCode 12.5. Also I removed the [CP] Copy Pods Resources – hernan May 15 '21 at 22:16
  • After trying the accepted solution I had no luck, this is what worked for me – wisenickel Feb 21 '22 at 03:01
  • what does this do ? – Ced Apr 18 '23 at 20:55
  • Tried all the above answers. But only this worked!!.THANK YOU – Uvais Jun 23 '23 at 06:35
31

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

soCohesive
  • 593
  • 5
  • 10
19

This worked out for me:

cd ios && pod deintegrate

pod install

Then go ahead and rerun your project

karanzijm
  • 333
  • 3
  • 9
18

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.

Geri Borbás
  • 15,810
  • 18
  • 109
  • 172
13

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
Shubham Ojha
  • 461
  • 5
  • 17
10

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

Frakcool
  • 10,915
  • 9
  • 50
  • 89
7

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

nfranzmeier
  • 111
  • 2
  • 2
    I had to open the file with an external editor an search for it as on XCode it doesn't appear. Maybe the problem is that I'm using XCode 10 and 11 for different projects and maybe I opened the conflicting one with the wrong version. – BuguiBu Nov 28 '19 at 14:32
7

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.

Dr Douglas GhD
  • 1,089
  • 8
  • 5
  • Thanks I have the same issue, different flavors. But it has been pretty hard to get to this point. Trying this solution now. – jasxir May 06 '21 at 08:09
  • If you know, do let me know if it's possible to add dynamic value in #include so the same file can be used for debug and release. Thanks. – jasxir May 06 '21 at 08:17
7

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

Jochen Holzer
  • 1,598
  • 19
  • 25
3
In my case 
 -> pod deintegrate
 -> pod clean 
 -> pod install 
 then rebuild the project works fine. 
 My XCode = 11.3.1 
Mahfuz
  • 63
  • 6
  • 4
    Welcome to Stack Overflow. You've left three answers in this same form. It would be good to make clear how you are sure that "your case" is the same as the case presented in the question and to explain how these steps do what they do and why that solves the problem that was presented. – Jason Aller Mar 09 '20 at 16:15
  • actual problem is accessing "frameworks-Debug-output-files.xcfilelist" file. all 3 problems indicate that they cannot access that file, that is why i have given the save answer. – Mahfuz Mar 10 '20 at 17:45
  • My XCode version is 11.4.1 had the same issue, if my guess is correct a pod libraries are either missing or not matching the ones cloned from github and the above process is required to install and update the correct libraries and references. Hope this helps. – Suhirthan May 24 '20 at 04:32
2

For myself it works like that:

For example app name is "xyz"

click xyz(top) -> project(xyz)-> info -> configuration -> Debug -> xyz -> "Select Pods-xyz.debug"

xcode-13 or above

1

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

Viky293
  • 1,250
  • 12
  • 18
1

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.

pronetor
  • 11
  • 1
0

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 :)

Oded Regev
  • 4,065
  • 2
  • 38
  • 50
0

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

Murugan M
  • 175
  • 3
  • 8
0

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.

Dharman
  • 30,962
  • 25
  • 85
  • 135
fvaldivia
  • 446
  • 5
  • 13
0

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

0

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
0
  1. Try to go to your project directory.
  2. Navigate to /ios
  3. Remove Podfile.lock
  4. Run project
stan
  • 229
  • 3
  • 10
0

For me, using Flutter, I had recreated my MacOs app and hadn't yet run it. Running the app adds the necessary files.

atreeon
  • 21,799
  • 13
  • 85
  • 104
-4

Change build configuration from release mode to debug mode.

kiran
  • 4,285
  • 7
  • 53
  • 98