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

Use the project-level swift version when not defined at the target-level #5760

Merged
merged 2 commits into from
Aug 17, 2016

Conversation

benasher44
Copy link
Member

Fixes #5737 and #5700

PodVariants are unique by, among other things, their TargetDefinition's swift version. Previously this would be nil if only defined at the project level. This would lead to multiple PodVariant instances for the same PodTarget incorrectly, and later on this leads to the Errno::EEXIST errors from incorrectly trying to create the same support files directories for the same PodTargets.

@endocrimes
Copy link
Member

LGTM when CI Passes - Out of interest in what cases does Xcode generate these?

@benasher44
Copy link
Member Author

benasher44 commented Aug 17, 2016

If you set "Use Legacy Swift Language Version" to Yes or No in the Project then you get this.

@benasher44
Copy link
Member Author

If by "generate" you mean the Errno::EEXIST errors, those are generated during pod install. The linked project in #5700 reproduces this reliably.

@benasher44
Copy link
Member Author

The caveat here though is that if you only configure "Use Legacy Swift Language Version" in the project and not in the targets, then you won't run into any issues because the TargetDefinition#swift_version always returns nil, so technically all of the reported swift versions are the same 😃

@endocrimes
Copy link
Member

@benasher44 makes sense

@benasher44
Copy link
Member Author

Only failure is the spurious execution_output.txt one

@segiddins
Copy link
Member

:shipit:

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.

None yet

3 participants