CocoaPods version control, must use pod install when cloning repo

被刻印的时光 ゝ 提交于 2019-12-13 04:33:14

问题


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?


回答1:


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 run pod install after cloning the repository



来源:https://stackoverflow.com/questions/31241043/cocoapods-version-control-must-use-pod-install-when-cloning-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!