Undefined symbols for _kfun:platform.darwin.objcKniBridge77$darwin(kotlin.native.internal.NativePtr;kotlin.native.internal.NativePtr)platform.darwin.NSObject?
See original GitHub issueI’m following client-mpp sample in my MPP project, which generates an Android AAR and iOS framework. The version information is as follows:
buildscript {
ext.kotlin_version = '1.3.0-rc-57'
ext.kotlin_native_version = '0.9.2'
ext.serialization_version = '0.8.1-rc13'
ext.ktor_version = "0.9.5-rc13"
ext.android_gradle_version = '3.2.0'
}
ktor is my second dependency after serialization. Serialization works without problems on both iOS and Android. After adding dependency on ktor, I got IosClientEngine-related error when building iOS framework (Android AAR is generated without problems).
> Task :ios:compileDebugIos_x64KotlinNative
Undefined symbols for architecture x86_64:
"_kfun:platform.darwin.objcKniBridge77$darwin(kotlin.native.internal.NativePtr;kotlin.native.internal.NativePtr)platform.darwin.NSObject?", referenced from:
_kfun:io.ktor.client.engine.ios.IosClientEngine.object-1.<init>#internal in combined.o
ld: symbol(s) not found for architecture x86_64
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
> Task :ios:compileDebugIos_x64KotlinNative FAILED
What should I do to resolve it?
Thank you in advance!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Kotlin Multiplatform - Objective-C interoperability architecture ...
Kotlin Multiplatform - Objective-C interoperability architecture issue Undefined symbols for architecture x86_64 · Ask Question. Asked 1 year, 9 ...
Read more >Kotlin Native
Kotlin Native. Kotlin/Native is a technology for compiling Kotlin code to native binaries which can run without a virtual machine.
Read more >Kotlin Multiplatform Project for Android and iOS: Getting Started
Thanks to Kotlin/JVM, Kotlin/JS and Kotlin/Native, ... It isn't possible to use platform-specific code inside the common module, but Kotlin ...
Read more >Building Multiplatform Project on Kotlin/Native - Medium
The common module can declare the expected declaration that has the actual realization in the platform modules. By the expect keyword we can ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
same problem. i fix it when set this versions:
but in runtime coroutines fail with
on
I whish I could migrate to
kotlin_version=1.3.0-rc-131
andserialization_version=0.8.2-rc13
but I can’t because of this problem