CocoaPods version control, must use pod install wh

2019-09-17 07:34发布

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条回答
疯言疯语
2楼-- · 2019-09-17 07:55

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

查看更多
登录 后发表回答