Unable to identify the Cocoa Pods


#1

I inherited a project.

I built it but i showed errors.
Apparently its missing cocoa pods.
My colleague mentioned that he was able to compile it seamlessly.

  1. Does this mean that if the pods exist in the machine the build will be seen?
  2. Does checking the colleagues set up be sufficient to identify the pods needed?
  3. Worst case, how do I identify pods via code?

photo pods_zpsxlslrt4x.png


#2

What do you mean you built it? Built it from Xcode?

Based on the error you need to reinitialize the pods of the project by doing a pod install in the root folder.

if you don’t have cocoapods installed, you need to install it first


#3

What do you mean you built it? Built it from Xcode?

meaning once the pods are in your machine itll be recognized in future projects.

Based on the error you need to reinitialize the pods of the project by doing a pod install in the root folder.
if you don’t have cocoapods installed, you need to install it first

As you can see I tried to install using what you suggested, i also tried it earlier since i went to stackoverflow
Apparently the Podfile is missing,

photo 29572373_10160058034640231_5122688849209720832_n_zps0dm0kuag.png


#4

Your colleague probably didn’t commit the Podfile, Podfile.lock and Manifest.lock. Ask him to commit those files.


#5

Unfortunately, that person is else where and unreachable already.


#6

Tough luck. You can recreate the Podfile by looking manually at the import <framework> statements in the source files and list down the pods they used. Hopefully the project still works with the latest versions of all the pods they used.