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

Kotlin 2.0 on link step crash #96

Open
ExNDY opened this issue May 24, 2024 · 5 comments
Open

Kotlin 2.0 on link step crash #96

ExNDY opened this issue May 24, 2024 · 5 comments

Comments

@ExNDY
Copy link

ExNDY commented May 24, 2024

When i'm try run ios app i'm get crash with this error:

> Task :mpp-library:linkPodDebugFrameworkIosSimulatorArm64
warning: Cannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: MultiPlatformLibrary. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
w: KLIB resolver: Skipping '/Users/exndy/.gradle/caches/modules-2/files-2.1/org.jetbrains.skiko/skiko-iossimulatorarm64/0.8.4/15291c09538e8f22b232a76062b16a88afe161c8/skiko-cinterop-uikit.klib'. The library requires unknown IR provider: kotlin.native.cinterop
e: KLIB resolver: Could not find "/Users/exndy/.gradle/caches/modules-2/files-2.1/org.jetbrains.skiko/skiko-iossimulatorarm64/0.8.4/15291c09538e8f22b232a76062b16a88afe161c8/skiko-cinterop-uikit.klib" in [/Users/exndy/Documents/Projects/KMM/friday/ios-app/Pods]

For fix, i need disable kswift plugin in my project

@mr-kew
Copy link

mr-kew commented Jun 7, 2024

I am actually getting this error already when running ./gradlew kSwiftsharedPodspec.

Edit:

@ExNDY What do you mean by disabling the kswift plugin? Does that effectively mean the library is unusable or did you manage to solve it?

@ExNDY
Copy link
Author

ExNDY commented Jun 11, 2024

For my project doesn't need more kswift. This issue create for report problem.

@OSemenovBoyarka
Copy link

I have the same issue with moko-kswift 7.0.0 and previous versions as well.
This happens whenever I try to assemble xcframework using with ./gradlew assembleFrameworkNameDebugXCFramework.

However, in my case error indicates different cinterop library:

w: KLIB resolver: Skipping '/Users/<user>/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-utils-iosarm64/2.3.12/d29788d387943aa44bed7360a2fd4d80745cfe80/ktor-utils-cinterop-threadUtils.klib'. The library requires unknown IR provider: kotlin.native.cinterop
e: KLIB resolver: Could not find "/Users/<user>/.gradle/caches/modules-2/files-2.1/io.ktor/ktor-utils-iosarm64/2.3.12/d29788d387943aa44bed7360a2fd4d80745cfe80/ktor-utils-cinterop-threadUtils.klib"

If I disable moko-kswift - everything compiles just fine.

Is there any quick workaround to fix this?

@mr-kew
Copy link

mr-kew commented Jul 18, 2024

@OSemenovBoyarka I also did not manage to solve it and decided to not use this library. I used SKIE instead.

@harunagic
Copy link

@OSemenovBoyarka I have the same issue..

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

4 participants