Skip to content
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

XCFramework generation issue with Kotlin 1.6.20-RC #315

Closed
r4phab opened this issue Mar 9, 2022 · 2 comments · Fixed by #319
Closed

XCFramework generation issue with Kotlin 1.6.20-RC #315

r4phab opened this issue Mar 9, 2022 · 2 comments · Fixed by #319
Assignees
Labels
bug Something isn't working
Milestone

Comments

@r4phab
Copy link

r4phab commented Mar 9, 2022

I'm trying tu update my Kotlin Multiplatform library with Kotlin 1.6.20-RC but an error occurs when trying to build using the new build task : https://youtrack.jetbrains.com/issue/KT-50904

Here is the error happening when trying to build my XCFramework :

Caused by: java.lang.ClassCastException: class org.jetbrains.kotlin.gradle.tasks.FrameworkDescriptor cannot be cast to class org.jetbrains.kotlin.gradle.plugin.mpp.Framework (org.jetbrains.kotlin.gradle.tasks.FrameworkDescriptor and org.jetbrains.kotlin.gradle.plugin.mpp.Framework are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @61a54c86)
        at dev.icerock.gradle.generator.apple.AppleMRGenerator$setupFatFrameworkTasks$fatAction$1.execute(AppleMRGenerator.kt:308)
        at dev.icerock.gradle.generator.apple.AppleMRGenerator$setupFatFrameworkTasks$fatAction$1.execute(AppleMRGenerator.kt:305)

Can you please provide a working version for Kotlin 1.6.20-RC ? 🙏

@Alex009 Alex009 added the bug Something isn't working label Mar 9, 2022
@Alex009 Alex009 added this to the 0.19.0 milestone Mar 9, 2022
y9san9 added a commit that referenced this issue Mar 17, 2022
y9san9 added a commit that referenced this issue Mar 17, 2022
y9san9 added a commit that referenced this issue Mar 21, 2022
y9san9 added a commit that referenced this issue Mar 21, 2022
@Alex009 Alex009 linked a pull request Mar 23, 2022 that will close this issue
Alex009 added a commit that referenced this issue Mar 23, 2022
#315: Compatibility issue fix 1.6.10 → 1.6.20-RC
@Alex009
Copy link
Member

Alex009 commented Mar 23, 2022

will be available in 0.19.0

@Alex009 Alex009 closed this as completed Mar 23, 2022
@r4phab
Copy link
Author

r4phab commented Mar 23, 2022

Thank you for the fix, have a nice day ! 😬

@Alex009 Alex009 mentioned this issue Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants