-
Notifications
You must be signed in to change notification settings - Fork 458
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
PBXNativeTarget.add_dependency support for subproject targets #101
Conversation
end | ||
|
||
it "does not find references by relative path" do | ||
lambda { @project.reference_for_path(@project.path.basename) }.should.raise ArgumentError |
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.
We tend to implement this as:
should.raise ArgumentError do
@project.reference_for_path(@project.path.basename)
end.message.should.match /not this project/
This patch looks great! Could you update the changelog crediting yourself? |
Thanks for reviewing! I added the style fixes as a separate commit. I can amend them into the original two commits if you prefer. |
It mirrors the functionality of the method with the same name in CocoaPod's Pod::Project class (which after this patch will override it). The differences are 1) CocoaPod's implementation is constant time but this is linear wrt the number of objects, 2) CocoaPod's implementation does not work when you load a previously existing file.
Previously, the behavior was simply to silently create an invalid Xcode project file that Xcode UI showed as if the dependency wasn't added.
Nevermind I found that I forgot a fix anyway. I have now rebased my commits so that they are nice and clean and force pushed the new branch. I'm not too familiar with the GitHub workflow, I hope that this doesn't mess things up. |
Looks great. Thank you! |
PBXNativeTarget.add_dependency support for subproject targets
👍 |
This part of my work on CocoaPods/CocoaPods#1024.
I do this in order to sanely be able to make the Pod target depend sanely on the subproject target(s).