5

I added the Pods/* to the .gitignore, I have the Podfile.lock under the source control.

While creating a new branch, I have to run the pod install. As I don't have the pods installed for the new branch.

I tried adding the Pre-Action Run Script. The Pre-Action Run Script will do the following

  1. Move to the Project Directory
  2. Run the pod install.

I am able to see all the pods installed.

However if I try to build, XCode throws error saying that there is no such module in the source files.

Sachin Vas
  • 1,757
  • 12
  • 16
  • Are you still having this issue? Can you elaborate? CocoaPods already has a build phase that runs before compilation called "Check Pods Manifest.lock". Are you running your script before or after this one? – Alex Machado Aug 03 '17 at 00:59
  • Who is doing the building? You manually (via a "Build"/"Run"/"Archive" within Xcode)? Or some CI / Continuous Integration scheme, like Jenkins or Travis? Also, what ***thing*** is open within Xcode where you see these build phases? A project or a workspace? – Michael Dautermann Aug 03 '17 at 07:17
  • I am trying to Run the project, maybe I was doing at a wrong place. It should been associated with the Build Pre-Action. – Sachin Vas Aug 04 '17 at 06:10

0 Answers0