-
Notifications
You must be signed in to change notification settings - Fork 601
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
Use CocoPods instead of git-submodules for linking with AFNetworking in Unit Tests #90
Use CocoPods instead of git-submodules for linking with AFNetworking in Unit Tests #90
Conversation
@@ -13,3 +13,8 @@ profile | |||
*.moved-aside | |||
.DS_Store | |||
*.xccheckout | |||
# CocoaPods | |||
Podfile.lock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You must never gitignore Podfile.lock
.
Podfile.lock is the manifest that tell with versions of the pods have been installed the last time you pod install
. Keeping it ensure that anyone making a pod install
on their own machine will get the same version of pods that the ones you used the last time you checked your code.
This is important because if for some reason a third-party lib update (even a patch) breaks something, the code that works now will suddenly stops working later even if there were no new commit in OHHTTPStubs
… just because one dependency did publish a breaking update, and as you didn't commit the Podfile.lock
so you didn't lock your dependencies.
That's the way every dependency manager (CocoaPods, Carthage, etc) work and Podfile.lock
files are meant to be committed onto GIT, otherwise there would be no guarantee that running pod install
one day on one machine will install the same stuff that running pod install
days later or on another machine. (If you want to update your dependencies later, that's what pod outdated
and pod update XXX
and pod update
are for anyway)
Travis Failed. Seems to be because you introduced the need for running
|
Hi @AliSoftware To Pods/Podfile.lock or not to Pod/Podfile.lock, that is a question... BUT, I've added them as you wished. Question: should i also add OHHTTPStubs.xcworkspace if you don't want to have a pre-requisite on pod install ? Yes we need to discuss the minimal deployment target. I'll take a closer look to Travis build shortly. |
@AliSoftware because i'm not familiar with, just reading http://www.cocoanetics.com/2014/07/development-pods/ |
To commit the Pods/ folder or not is entirely debatable and a matter of preferences, I totally agree, as explained above already. But regarding The Specifying explicit versions in the Please read the guides again that explain that in details: http://guides.cocoapods.org/using/using-cocoapods.html |
Just modify the You can then commit the And it allows Travis to work without the need to contact other servers, and it allows |
See also my detailed answer and explanation in this GitHub comment regarding the intended usage of |
but we still have to sort out:
If this is not the way you want to go forward, close my PR. |
Sorry to insist, but that's still not true. Anyway, the Regarding other aspects, I'm ok with bumping the minimum version. |
Regarding Travis, we will have to test it but I bet that even if So I my bet is right, changing the target to 7.1 instead of 7.0 in the |
@AliSoftware Still the same with 7.1
|
Mmmhh. Really strange. Will look into that ASAP. Thanks for all your tests! |
Bad news. Just ran
|
This is now fixed and merged. Regarding Travis-CI, I confirmed this is because Travis does not actually has the iOS7 Runtime installed. I emailed their support to ask for it, and disabled it in the meantime. |
@AliSoftware this is a PR for #86
wdyt?