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 workaround for SPM name #1106

Merged
merged 4 commits into from
Mar 30, 2020
Merged

Add workaround for SPM name #1106

merged 4 commits into from
Mar 30, 2020

Conversation

designatednerd
Copy link
Contributor

This PR addresses issues pointed out in #1102 and #1105.

The issue is that for some reason Swift 5.2 is not picking up on Package.swift's name property correctly for use with a product in a dependency. I have not been able to figure out why - I tried renaming the package to Apolloooo temporarily and while Package.resolved picked that up, it still caused the same error.

I've added details on to SR-12210, which appears to be the same issue.

The workaround for the moment is to manually specify the name of the dependency, which is easy if obnoxious. I've updated our documentation to reflect this recommendation.

Also in this PR:

  • Updated Package.swift for main lib to use swift-tools-version 5.2 and use style accordingly
  • Added Package.swift to the main .xcodeproj because I'm sick of having to hunt for it manually 😆
  • Updated gitignore to also ignore new folder for testing codegen lib downloads

@designatednerd designatednerd changed the title Fix/spm name Add workaround for SPM name Mar 30, 2020
@designatednerd designatednerd merged commit 26c7bac into master Mar 30, 2020
@designatednerd designatednerd deleted the fix/spm-name branch March 30, 2020 21:56
@designatednerd designatednerd added this to the Next Release milestone Mar 30, 2020
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.

1 participant