Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incorrect path for Pods.debug.xcconfig in Xcode?

so I used Venmo/Synx on my Xcode project with CocoaPods, and it completely screwed everything up.

I was able to fix the Manifest.lock and Podfile.lock errors, but now I am getting this error:

The file “Pods.debug.xcconfig” couldn’t be opened because there is no such file. (/Users/user/GitHub/xxxxxx/Pods/Pods/Target Support Files/Pods/Pods.debug.xcconfig)

As you can see, the path is incorrect, as there is no Pods/Pods directory (there is one extra pod).

How can I fix this? I have only added PODS_ROOT to the user-defined variable, as that fixed my Podfile and Manifest.lock files.

Any help would be much appreciated!


Edit:

After adding PODS_ROOT, I get this when running pod install.

[!] The `Project [Debug]` target overrides the `PODS_ROOT` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation     - Use the `$(inherited)` flag, or     - Remove the build settings from the target. 
like image 461
mais-oui Avatar asked Nov 24 '14 16:11

mais-oui


People also ask

What is the pods folder in Xcode?

“CocoaPods manages library dependencies for your Xcode projects. The dependencies for your projects are specified in a single text file called a Podfile. CocoaPods will resolve dependencies between libraries, fetch the resulting source code, then link it together in an Xcode workspace to build your project.

Could not find included file pods target support files pods pods debug Xcconfig in search paths?

to Solve error: could not find included file 'Pods/Target Support Files/Pods-Runner/Pods-Runner. debug. xcconfig' in search paths (in target 'Runner') you just have to install pods manually. the second solution is Just to delete Podfile and re-run your app.

How do I install POD files?

Open the Podfile by selecting Tools | CocoaPods | Edit Podfile from the main menu. Read more about the Podfile syntax here. To install the pods, do one of the following: Place the caret at the code line where you add the pod, press ⌥ ⏎ , select Install, and press ⏎ .


2 Answers

I had the same problem in Xcode 6.1.1. I did the following to solve it:

  1. Set the configuration file setting* "None" for the Pods related target.
  2. Close the .xcworkspace.
  3. run pod install again
  4. now open and build your .xcworkspace

*The configuration file setting is found by selecting the project (not the target) and then the Info tab.

like image 150
Evana Avatar answered Oct 17 '22 07:10

Evana


If your path to pods in error is wrong try this:

  • use pod deintegrate
  • delete all pod remains files - Podfile.lock, Pods, <Project>.xcworkspace
  • open <Project>.xcodeproj
  • remove Pods project on left side
  • try pod install
like image 39
martinpristas Avatar answered Oct 17 '22 06:10

martinpristas