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

Gradle task kspKotlinIosSimulatorArm64 fails in 1.0.0-ALPHA-38 #198

Open
Saad-Mufti opened this issue Dec 17, 2024 · 2 comments
Open

Gradle task kspKotlinIosSimulatorArm64 fails in 1.0.0-ALPHA-38 #198

Saad-Mufti opened this issue Dec 17, 2024 · 2 comments

Comments

@Saad-Mufti
Copy link

> Task :shared:kspKotlinIosSimulatorArm64 FAILED
Custom actions are attached to task ':shared:kspKotlinIosSimulatorArm64'.
Caching disabled for task ':shared:kspKotlinIosSimulatorArm64' because:
  Build cache is disabled
Task ':shared:kspKotlinIosSimulatorArm64' is not up-to-date because:
  Input property 'excludeOriginalPlatformLibraries$kotlin_gradle_plugin_common' file /Users/saad/.konan/kotlin-native-prebuilt-macos-aarch64-2.1.0/klib/platform/ios_simulator_arm64/org.jetbrains.kotlin.native.platform.CoreFoundation/default has been removed.
  Input property 'excludeOriginalPlatformLibraries$kotlin_gradle_plugin_common' file /Users/saad/.konan/kotlin-native-prebuilt-macos-aarch64-2.1.0/klib/platform/ios_simulator_arm64/org.jetbrains.kotlin.native.platform.CoreFoundation/default/linkdata has been removed.
  Input property 'excludeOriginalPlatformLibraries$kotlin_gradle_plugin_common' file /Users/saad/.konan/kotlin-native-prebuilt-macos-aarch64-2.1.0/klib/platform/ios_simulator_arm64/org.jetbrains.kotlin.native.platform.CoreFoundation/default/linkdata/module has been removed.
file or directory '/Users/saad/app/shared/src/appleMain/kotlin', not found
file or directory '/Users/saad/app/shared/src/nativeMain/kotlin', not found
file or directory '/Users/saad/app/shared/src/iosSimulatorArm64Main/kotlin', not found
file or directory '/Users/saad/app/shared/src/appleMain/kotlin', not found
file or directory '/Users/saad/app/shared/src/nativeMain/kotlin', not found
Can't find env_blacklist file at /Users/saad/.konan/kotlin-native-prebuilt-macos-x86_64-2.1.0/tools/env_blacklist.
error: org.jetbrains.kotlin.cli.utilities.MainKt

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:kspKotlinIosSimulatorArm64'.
> java.lang.ClassNotFoundException: org.jetbrains.kotlin.cli.utilities.MainKt

I'm new to KMP-NativeCoroutines and am not sure if I'm doing something wrong here - above is the error excerpt from running ./gradlew :shared:embedAndSignAppleFrameworkForXcode --info as a build phase in my iOS app. Any help would be appreciated.

KMP-NativeCoroutines version: 1.0.0-ALPHA-38
KSP version: 2.1.0-1.0.29
MacOS version 15.2 (Sequoia), Apple M2 chip
XCode Version 16.2 (16C5032a)

@rickclephas
Copy link
Owner

Sounds like there is an issue with the ~/.konan directory similar to this issue.

Could you try to sync in IntelliJ/Android Studio and/or clearing the konan directory?

@Saad-Mufti
Copy link
Author

Saad-Mufti commented Dec 18, 2024

I tried that, to no effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants