Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The file “Pods.xcconfig” couldn’t be opened because there is no such file

Tags:

git

ios

cocoapods

How to solve this issue. I have downloaded the iOS project from the Git repo and when I try to build, it gives an error:

Check dependencies
The file “Pods.xcconfig” couldn’t be opened because there is no such file. (/Users/YoGesh/Desktop/Xy-3/Pods/Pods.xcconfig)
PhaseScriptExecution Check\ Pods\ Manifest.lock /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy-bmwkojrwthnvzdfxthnxeqgesekm/Build/Intermediates/Xy.build/Debug-iphonesimulator/Xy.build/Script-C0451AB63D7F4B73830000BA.sh
    cd /Users/YoGesh/Desktop/Xy-3
    /bin/sh -c /Users/YoGesh/Library/Developer/Xcode/DerivedData/Xy-bmwkojrwthnvzdfxthnxeqgesekm/Build/Intermediates/Xy.build/Debug-iphonesimulator/Xy.build/Script-C0451AB63D7F4B73830000BA.sh

diff: /../Podfile.lock: No such file or directory
diff: /Manifest.lock: No such file or directory
error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.
like image 697
user2618875 Avatar asked Jul 04 '14 07:07

user2618875


4 Answers

I found a good hint inside the issues of CocoaPods on GitHub, try this:

  1. Close your project (better close Xcode completely)
  2. Open the Terminal inside your project and execute pod install
  3. Open your project again. If there are still errors clean your project ( Shift + cmd + K ), after this the errors should be gone.
like image 197
Alex Cio Avatar answered Sep 30 '22 07:09

Alex Cio


Restarting Xcode helped me. Pod update and install didn't help.

like image 43
Denis Kutlubaev Avatar answered Sep 30 '22 08:09

Denis Kutlubaev


Go to your project directory from the terminal

run "pod update"

like image 26
Rocky Perera Avatar answered Sep 30 '22 07:09

Rocky Perera


Hey i had this same problem, I was getting the following error when running pod update however i didn’t realise the update wasn’t working.

$ pod update

Analyzing dependencies /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/pathname.rb:422:in `open': No such file or directory

It was because I forgot to run "pod setup" after installing cocoapods. I ran pod setup from the terminal, followed it up with pod update (or pod install) and everything went to plan.

like image 23
Michael Hill Avatar answered Sep 30 '22 09:09

Michael Hill