-
Notifications
You must be signed in to change notification settings - Fork 739
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
[v1.0.0 Alpha] 'Sendable' class 'JavaScriptError' cannot inherit from another class other than 'NSObject' #2146
Comments
Thanks for digging into the alpha so quickly @TizianoCoroneo and for the PR, much appreciated. |
The issue already exists on v0.5.0 with Xcode 13.3 beta 1. |
@Jerrot - this is now fixed in |
Great, thanks @calvincestari and @TizianoCoroneo as well. |
I could see this error getting resolved but I am facing "Missing package product 'ApolloCore'" error now. |
I'm seeing this issue with Xcode 13.3 (13E113) using 0.41.0. If I move up to 0.51.0 I get a whole bunch of errors. Any advice? |
The latest release is 0.51.2, maybe try that first. Works just fine here with Xcode 13.3. |
@andyBettis it really depends on what those errors are. There are a lot of breaking changes between |
Yes, all sorted, I just had to follow the changes. Thanks for your help. |
I am still getting this issue after upgrading to 0.51.2 and I'm using Xcode 13.3. What is causing this? error: 'Sendable' class 'JavaScriptError' cannot inherit from another class other than 'NSObject' |
I'm really not sure @jwoodard4-chwy. Take a look at the code in your dependency version of |
I'm having the same problem here. I did check |
Are you able to replicate this in a standalone sample project you could share with me? I'm not able to reproduce the error on the latest version. |
One thing to note is that we are using the Codegen Package Template to handle the schema download and codegen scripts. Update: |
Donny:
Is the CI environment using the same version of Xcode you are? I ran into this last month (using the App Store version of Xcode, which bundles Swift 5.6 – see https://swiftversion.net for more info) and had to downgrade to Xcode 13.2 to get it to build.
Chris Woodard
Practice Hub team
From: Donny Davis ***@***.***>
Date: Wednesday, May 11, 2022 at 4:15 AM
To: apollographql/apollo-ios ***@***.***>
Cc: James Christopher Woodard ***@***.***>, Mention ***@***.***>
Subject: Re: [apollographql/apollo-ios] [v1.0.0 Alpha] 'Sendable' class 'JavaScriptError' cannot inherit from another class other than 'NSObject' (Issue #2146)
We just updated to from version 0.39.0 to 0.51.2 and I am seeing this error now. We are still using Xcode 13.1. The weird thing for us, is that I only see this error in our CI environment, but everything works fine locally. 🤔
—
Reply to this email directly, view it on GitHub<https://protect-us.mimecast.com/s/MmZ2CNkBjBIpNZM6hmDMaT?domain=github.com>, or unsubscribe<https://protect-us.mimecast.com/s/Gsc1COYDkDSkAN2OHvfACO?domain=github.com>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Isn't the latest version |
The latest release is 2.34.0 however apollo-ios is pinned to use 2.33.9. @strahinja-mem it would be worth it to try again removing any interim build, I've found that to be the most problematic. |
Sure, I can try that - What do you mean by interim build? |
The prebuilt artifacts that the compiler uses to speed up compilations between builds. In an Xcode project these are probably in the DerivedData folder and on an SPM project they're in the |
I delete |
What about in the root of the folder where the |
@strahinja-mem are you able to replicate this build error in a new standalone project? |
I tried running the same project on a different Mac, and it worked, so yeah, this has something to do with my cache. The question is, which cache since I tried both reinstalling the Xcode and re-cloning the repo. 🤔 |
@strahinja-mem Any updates on this issue? |
No unfortunately, I still run the script from my older Mac. |
Bug report
I'm trying out the new alpha version for v1.0.0 using Xcode 13.3 beta. I encountered this error while trying to run the codegen using Swift Scripting.
Versions
Please fill in the versions you're currently using:
apollo-ios
SDK version: v1.0.0-alpha-1Steps to reproduce
Try to run a Swift Scripting setup of the Apollo codegen.
The text was updated successfully, but these errors were encountered: