Skip to content

Add workaround for SPM name#1106

Merged
designatednerd merged 4 commits intomasterfrom
fix/spm-name
Mar 30, 2020
Merged

Add workaround for SPM name#1106
designatednerd merged 4 commits intomasterfrom
fix/spm-name

Conversation

@designatednerd
Copy link
Copy Markdown
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