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

Add spec validation for scheme test targets and tweak docs #775

Merged
merged 3 commits into from
Feb 6, 2020

Conversation

liamnichols
Copy link
Contributor

As we roll out XcodeGen on our project, I got stumped for a little while when trying to create a Scheme definition that includes targets from a referenced project (and not a target defined in the spec).

It wasn't immediately obvious to me that I needed to use the ProjectName/TargetName syntax for this to work since in Xcode, the GUI doesn't expose the fact that it does this for you.. After I figured that out, I decided to update the docs to include the FooLib/FooTarget example previously used in the document to hopefully help anybody facing a similar situation in the future.

After I made the changes and run the generator, I then hit a thrown exception with a different error that threw me off again until I debugged slightly to realise that the SpecValidation wasn't checking target references defined in the Test action (I'd only updated the build action)... To help make this a bit more obvious, I've expanded the validator to check the test actions target references as well as coverage target references in a similar way to how the build targets were being validated.

Thanks again for the great work so far! 🚀

…Scheme.Test action. Add additional coverate to ProjectSpectTests
@liamnichols liamnichols force-pushed the ln/scheme-target-validation branch from c086a6c to 5a8bdc8 Compare February 6, 2020 11:07
@liamnichols liamnichols force-pushed the ln/scheme-target-validation branch from 5a8bdc8 to 6a33ad8 Compare February 6, 2020 11:11
Copy link
Owner

@yonaskolb yonaskolb left a comment

Choose a reason for hiding this comment

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

Thanks @liamnichols!

@yonaskolb yonaskolb merged commit 98fde47 into yonaskolb:master Feb 6, 2020
@liamnichols liamnichols deleted the ln/scheme-target-validation branch February 6, 2020 12:00
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