Install same pod for multiple target.

 

Quite often we need to have multiple target for xcode project  to handle development version, UAT version or production version.  But if you are using pod project then you might get error such as “No module found” for specific target and no issue with other target. This generally happens when we misconfigure Podfile.  So here’s how we can install same pod file for multiple target.

 

Uninstall Cocoapod

First, determine which version(s) of Cocoapods you have installed by running this in Terminal:

gem list --local | grep cocoapods

You see output similar to this:

cocoapods (0.27.1, 0.20.2)
cocoapods-core (0.27.1, 0.20.2)
cocoapods-downloader (0.2.0, 0.1.2)

Continue reading