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

Scheme fixes #102

Merged
merged 2 commits into from
Oct 18, 2013
Merged

Scheme fixes #102

merged 2 commits into from
Oct 18, 2013

Conversation

per-gron
Copy link

This branch fixes a bug in the ReferencedContainer attribute generation in Scheme and adds support for aggregate build targets in the scheme generation. (Before, it would raise an error when generating hidden schemes for projects that have aggregate targets)

This will probably have a merge conflict in CHANGELOG.md if merged after my reference_for_path branch. I don't know what the nicest way to do this in GitHub is, this was the best way I could come up with.

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling 92f291d on pereckerdal:scheme_fixes into 137c227 on CocoaPods:master.

build_target.name
else
raise ArgumentError, "Unsupported build target type #{build_target.isa}"
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer the use of case...when...else...end here.

@alloy
Copy link
Member

alloy commented Oct 17, 2013

If you can fix that one style issue and fix the CHANGELOG merge conflict now that the other PR has been merged, then this can go in as well.

Thanks again for your work!

Per Eckerdal added 2 commits October 17, 2013 14:31
Before this patch, the method would raise an error
on aggregate targets. The method still doesn't
support PBXLegacyTargets, since I don't know how
they behave.
Generate correct ReferencedContainer attribute
when the Xcode project has a non-empty
`projectDirPath`.

The ReferencedContainer attribute is actually
relative to the projectDirPath.

I ran into a problem where Xcode would generate
duplicate schemes of the hidden schemes that are
generated by CocoaPods because the
ReferencedContainer attribute that CocoaPods
generates was different from what Xcode generated
on an Xcode project that was generated by Cmake in
a certain way.
@per-gron
Copy link
Author

Thanks.

The reason I'm working on this is that I want to add support for adding subprojects to podspecs, as discussed in CocoaPods#1024. It would be valuable to get feedback on whether this is a direction you would like to go.

The new podspec syntax I have created looks like this

s.xcodeproj = {
  :project => 'AProject.xcodeproj',
  :library_targets => ['some', 'targets', 'go', 'here']
}

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling cda4873 on pereckerdal:scheme_fixes into * on CocoaPods:master*.

@alloy
Copy link
Member

alloy commented Oct 18, 2013

Thanks for the changes!

Regarding CocoaPods/CocoaPods#1024, I would like to have that in, but there is likely going to be more details to figure out and @irrationalfab has some reservations regarding directly using the Xcode project or extracting useful info from it. The use-case you describe, however, is a reason why I would like this to work. Please continue and report all your findings on that ticket!

/cc @0xced

alloy added a commit that referenced this pull request Oct 18, 2013
@alloy alloy merged commit ee2c772 into CocoaPods:master Oct 18, 2013
@per-gron per-gron deleted the scheme_fixes branch October 19, 2013 07:41
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.

3 participants