hi everyone, currently I'm receiving an error whil...
# multiplatform
k
hi everyone, currently I'm receiving an error while building android/ios multiplatform-project:
Copy code
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:compileKotlinIos'.
> java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.utilities.MainKt
gradlew --version:
Copy code
------------------------------------------------------------
Gradle 6.5.1
------------------------------------------------------------

Build time:  2020-06-30 06:32:47 UTC
Revision:   66bc713f7169626a7f0134bf452abde51550ea0a

Kotlin:    1.3.72
Groovy:    2.5.11
Ant:     Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:     1.8.0_242-release (JetBrains s.r.o 25.242-b3-6222593)
OS:      Mac OS X 10.15.6 x86_64
Did anybody have a similar problem?
s
Not sure what the issue is offhand, but I suspect it will help a lot if you can attach a full stack trace. Run the failing command with the
--stacktrace
flag.
f
Hey, I'm also facing this problem, have you found a solution?
More info, this only happens when running in XCode Cloud (works fine in my machine) I believe the issue is in this gradle task • embedAndSignAppleFrameworkForXcode • Execution failed for task 'composeAppkspKotlinIosArm64'. But I'm not sure how I can modify it so that it includes --stacktrace
I've added
--stacktrace
to the "Compile Kotlin Framework" script found in project.pbxproj file
Does anyone know why I might be getting: ClassNotFoundException:
org.jetbrains.kotlin.cli.utilities.MainKt
https://gist.github.com/feresr/195c000b886fc2f2fdad13da2b83875c
🧵 2
c
Please keep your answers in the thread and don’t spam the channel. 🙏
f
will do, apologies
c
Which Java version is installed on the CI builder? I guess Xcode Cloud is not setup to run Gradle builds.
f
jdk_version="21.0.2" I'm installing it myself on a pre run script (ci_script/ci_post_clone.sh)
👍🏼 1
Downgrading to
Copy code
ksp = "2.0.21-1.0.27"
kotlin = "2.0.21"
seems to have fixed it (getting a different error now)