I have a question about using CocoaPods and working with version control. I have my project on a repo at GitLab. But if someone wants to clone that repo and work on it they have to use the pod install
command. I thought that if you push you project with pods to a repo you don't have to use pod install
when cloning it. Or is it something I have done wrong? This is how the current .gitignore
file looks:
xcschememanagement.plist
Pods-AFNetworking.xcscheme
Pods.xcscheme
Breakpoints_v2.xcbkptlist
WorkspaceSettings.xcsettings
Can this be the cause of the my problem?
So my question is; how do I make it so that you don't have to run the pod install
command each time you clone the repo or is this possible?
There are different pros and cons of checking the
Pods
directory into source control vs not doing it. This information is available in this section of the Cocoapod guides. Like you've pointed out one benefit is not having to runpod install
after cloning the repository