问题
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
- Move to the Project Directory
- 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
.
来源:https://stackoverflow.com/questions/39751977/ios-using-pod-install-as-pre-action-run-script-for-building-the-project