Hi, I would like to get a clarification on Kotlin Multiplatform support for iOS dependencies. From this page https://kotlinlang.org/docs/multiplatform-ios-dependencies.html, it states that we can import iOS dependencies through exported Objective-C. However, this page https://kotlinlang.org/docs/native-objc-interop.html states that "The Objective-C libraries import is Experimental."
I would like to confirm if this experimental import applies to adding iOS dependencies.
Raymond Lee
07/24/2024, 4:51 PM
Following up on this. Would anyone happen to know?
r
Rick Clephas
07/24/2024, 5:18 PM
Yes the docs are correct. When you add an ObjC dependency you’ll need to OptIn on the
ExperimentalForeignApi
.
Rick Clephas
07/24/2024, 5:19 PM
And like the second link mentions: the default platform libraries such as Foundation don’t have this requirement
r
Raymond Lee
07/24/2024, 5:23 PM
So adding any iOS dependencies is considered experimental?