-
Notifications
You must be signed in to change notification settings - Fork 656
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
Building iOS targets fail with Kotlin 1.6.20 #4019
Comments
Sorry, I continued to investigate and it may be a bug in Kotlin, not Apollo. |
Close because it seems to be a bug in Kotlin for sure. |
Thanks for the investigations and heads up! Looks like there are a lot of moving parts at the moment in native world. this issue mentions setting |
Thank you for your information! |
Hi 👋 . Thanks a lot for the reproducer! After digging a bit into this, I think this is "working as designed", not sure it's a Kotlin bug. For more details: Apollo Kotlin doesn't support HMPP yet because some dependencies like Okio do not support it yet and I understand it's something that's a hard requirement. Kotlin It might be that you still have the error in your full scale project though? And not the |
Thanks for the detailed info! In my full scale project, I saw your workaround in |
Not really sure I got HMPP correctly either... 😅 If you still have an error with |
I’m not have any errors with |
Summary
After updating Kotlin to 1.6.20, the
build
task fails with an "Unresolved reference" error.Version
3.2.2
Description
How to reproduce
See my sample project: https://github.com/kubode/ApolloKotlin1620Bug
Then run
./gradlew build
and you will see the following errors.Codes
iosMain
'sactual class
implementation:It seems to reference the JVM
actual class
as metadata.I think apollo-kotlin needs to migrate Kotlin to 1.6.20.
Workaround
If you set
kotlin.mpp.hierarchicalStructureSupport=false
ingradle.properties
, this error will not happen.The text was updated successfully, but these errors were encountered: