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

Fix issue with legacy target fileref #427

Merged
merged 1 commit into from
Nov 2, 2018

Conversation

dflems
Copy link
Contributor

@dflems dflems commented Oct 31, 2018

xcodegen was crashing when generating a legacy target as a dependency of another target (in this case an application). In the case of legacy targets, targetFileReferences[dependencyTarget.name] seems to be nil, and the generator was crashing on the force-unwrap. The value was only for used targets that are embedded into the parent target's bundle, so I moved the unwrap to that location.

@yonaskolb
Copy link
Owner

Fantastic, good catch @dflems! Could you add a change log entry as well please

@yonaskolb
Copy link
Owner

I'll add a changelog in master 👍

@yonaskolb yonaskolb merged commit b50a761 into yonaskolb:master Nov 2, 2018
@dflems dflems deleted the fix-legacy branch November 2, 2018 13:43
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