-
Notifications
You must be signed in to change notification settings - Fork 731
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: Xcode integration for Swift Package Plugins #2554
Conversation
✅ Deploy Preview for apollo-ios-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
@@ -62,9 +62,6 @@ let package = Package( | |||
exclude: [ | |||
"Info.plist", | |||
"Frontend/JavaScript", | |||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was forgotten about in #2548 resulting in a warning in Xcode.
name: SwiftPM - Build package | ||
- run: | ||
working_directory: Tests/CodegenCLITests/swiftpm-test/ | ||
command: swift package plugin --allow-writing-to-package-directory apollo-generate --verbose |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We only test the generate
command here because we needed have an existing JSON config file to prevent codegen finding all the test graphQL definition files in the .build
folder. We're going to fix that behaviour in #2552.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
Fixes #2543
The Xcode integration for SwiftPM plugins was not working correctly.
This PR fixes than through the following:
XcodePluginContext
to correctly route the command--target
command line option which was being sent by Xcode