-
Notifications
You must be signed in to change notification settings - Fork 729
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
SwiftUI Preview Fails #1039
Comments
Hi! What package manager are you using? Can you validate that the |
@peck The defensive |
Apologies for not seeing your first reply, didn’t get a notification from github for that one. I’ll give the new version a try and see if it fixes it. To answer the question, I’m using swift package manager and did not have codegen lib included. Thanks! |
Following up, I tried with the latest release and get the same error There is a very real possibility that I did something wrong to get here, and I don't have quite enough experience with the swift ecosystem yet to be of much help on tracking down the core issue, but Im still seeing it. Maybe best to keep the issue closed and if others have it can be revisited? |
👋 I got the same error using |
What the...oy. Yeah 0.22.0 doesn't have the Reopening - can you please take a look at the |
I had setup Apollo with SwiftPM, and I'm importing it as a dependency for another local package, so there is no Build phase to look at 😅 About the target I'm using, it doesn't attempt to link ApolloCodegenLib or embed its framework; but I've found a different fix and opened a PR. |
Actual fix shipping with 0.23.2 courtesy @TizianoCoroneo |
I think I've followed the installation instructions on the docs page, https://www.apollographql.com/docs/ios/installation/, and my builds works and runs on the similar just fine, but my swiftui preview breaks with this error in the diagnostics. I'm new to swiftui (though fairly familiar with Apollo/graphql from other projects) and searching didn't find similar issue.
apollo-ios -> 0.23.0
Xcode -> 11.3.1
On apollo-ios 0.22.0 I don't see the issue and preview seems to generally work as expected
The text was updated successfully, but these errors were encountered: