Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .gitignore for CocoaPods #1

Merged
merged 2 commits into from
Nov 22, 2014
Merged

Update .gitignore for CocoaPods #1

merged 2 commits into from
Nov 22, 2014

Conversation

keith
Copy link
Contributor

@keith keith commented Nov 22, 2014

This removes 2 entries from the current .gitignore

  1. The Podfile.lock (also checking in the current version). Without this file, if FMDB was updated to 3.0 with breaking changes, the next time someone cloned this and ran pod install they would install a broken version. Checking in this file ensures that pods will only be updated when running pod update. In the future you may want to add more specific information about acceptable versions as well. Here's the relevant section of "Using CocoaPods" where we discuss this.
  2. The generated xcworkspace. Since this project cannot be built without the dependencies installed via CocoaPods which go through this workspace, I'd recommend keeping this in the project. This will also show users who have just cloned the project that they are missing the Pods.xcodeproj.

This file holds information about the exact dependency versions
installed with `pod install`. In the case that one of the dependencies
were updated with API breaking versions it would still be installed.
Don't ignore the xcworkspace created by CocoaPods. Since your
dependencies, installed through CocoaPods, are required to build this
project, you shouldn't ignore the required workspace.
@russellhancox
Copy link
Contributor

My assumption for both of these is that the Rakefile runs 'pod install' and would handle this (coupled with specifying pod versions in the Podfile) but I'm not a CocoaPods expert so if this is easier, LGTM.

russellhancox added a commit that referenced this pull request Nov 22, 2014
Update .gitignore for CocoaPods
@russellhancox russellhancox merged commit 74dd63e into google:master Nov 22, 2014
@keith
Copy link
Contributor Author

keith commented Nov 23, 2014

Yes if you added specific versions in the Podfile that would work. Another benefit of having the Podfile.lock is that with it dependencies do not have to be resolved each install.

@keith keith deleted the ks-cocoapods branch November 23, 2014 03:18
@russellhancox
Copy link
Contributor

Cool. Thanks for your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants