07-21-2023, 04:19 PM
I've been doing iOS development for a couple of months now and just learned of the promising [CocoaPods][1] library for dependency management.
I tried it out on a personal project: added a dependency to [Kiwi][2] to my Podfile, ran `pod install CocoaPodsTest.xcodeproj`, and *voila*, it worked great.
The only thing I'm left wondering is: what do I check in, and what do I ignore for version control? It seems obvious that I want to check in the Podfile itself, and probably the .xcworkspace file as well; but do I ignore the Pods/ directory? Are there other files that will be generated down the road (when I add other dependencies) that I should also add to my .gitignore?
[1]:
I tried it out on a personal project: added a dependency to [Kiwi][2] to my Podfile, ran `pod install CocoaPodsTest.xcodeproj`, and *voila*, it worked great.
The only thing I'm left wondering is: what do I check in, and what do I ignore for version control? It seems obvious that I want to check in the Podfile itself, and probably the .xcworkspace file as well; but do I ignore the Pods/ directory? Are there other files that will be generated down the road (when I add other dependencies) that I should also add to my .gitignore?
[1]:
[To see links please register here]
[2]:[To see links please register here]