Skip to content

Instantly share code, notes, and snippets.

@brynbellomy
Created August 7, 2012 18:32
Show Gist options
  • Save brynbellomy/3288122 to your computer and use it in GitHub Desktop.
Save brynbellomy/3288122 to your computer and use it in GitHub Desktop.
xcode/cocoapods .gitignore
# Xcode
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
*.moved-aside
docset-installed.txt
.DS_Store
Podfile.lock
@mbaltaks
Copy link

mbaltaks commented Mar 7, 2013

Why commit the Podfile.lock file? Isn't it better to be more specific in the Podfile? Why do you need two separate files to declare your dependancies?

@sibljon "you need to run pod install first, which is not guaranteed to give you the same result independent of time" - how can this be true? Isn't this the point of dependancy management! I want to be able to clearly state what my app depends on, including exact versions if required, and have pod install give identical results at any point in the future. Can Cocoapods do this? Or is there something I'm missing?

@brynbellomy
Copy link
Author

Honestly I just threw this up here as a gist to see if it would inspire more heated discussion than any of the apps I've ever released (sigh).

Nah -- it's copied from somewhere else. Actually from whatever GitHub's official recommendation was at the time, I think.

But I can justify it nevertheless: I've come to mistrust CocoaPods rather deeply, especially as 1) I'm too busy to keep an eye on the CHANGELOG, and 2) CocoaPods seems to be in very rapid development. As a result, I wind up screwing things up all the time -- writing incorrect podspecs that don't jive with the current podspec DSL quite right, etc. And so pods do occasionally get overwritten when they shouldn't.

Consequently, given that clients can be demanding, vicious reptiles, I like to track the exact state of my projects/workspaces so that if someone needs a hotfix and it's 4am on a Wednesday, I can just do it and get back to not worrying about other people. As much.

However, if you have a sane job where it's more important to write correct code and manage dependencies the Right Way, you can tl;dr this whole post. You should .gitignore Pods/ fa'sho. I can't believe you get paid for that shit, though. Shame that I don't see a single pod ' ... ', :head in that sissy little Podfile of yours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment