2

Does anyone know why in the navigator of my Xcode project my Pods.xcodeproj file is listed in red? I am assuming that means Xcode cannot find the file so how do I make sure it actually does exist in the project.

Thanks!

benjamin852
  • 509
  • 7
  • 19

3 Answers3

1

run pod install in your workspace directory. It will install all the dependencies for you.

  • when I go to the directory and punch in pod init it says no Xcode project found, please specify one. Any idea why? – benjamin852 Jul 25 '17 at 08:25
  • Please check location for podfile & do pod init on same location. –  Jul 25 '17 at 08:28
  • so I'm clicking show in finder on the pods from Xcode and I'm still getting that error in terminal when I type pod init – benjamin852 Jul 25 '17 at 08:36
0

Do the usual Xcode fix stuff e.g. delete derived data and clean the project. Then, in Terminal, go to the directory that contains your Podfile. Once there, run these commands:

$ pod deintegrate
$ pod install
Hodson
  • 3,438
  • 1
  • 23
  • 51
0

First you need to install cocoa pods on your Mac. For that you need to go cocoapods.org

If you want to uninstall cocoa pods then refer this ans.

So first remove cocoa pods from your project and then install again.

Make sure you open workspace .xcworkspace not .xcodeproj project file.

Mahendra
  • 8,448
  • 3
  • 33
  • 56
  • Alright I think I installed the pods correctly. But now when I try to run the program I get an error saying: "Linker command failed with exit code 1 (use -v to see invocation). You know why that might be happening? Thanks so much for all the help Richard – benjamin852 Jul 25 '17 at 11:13