I have an issue when build mpp project to IOS Fram...
# multiplatform
w
I have an issue when build mpp project to IOS Framwork :
Copy code
> Task :mpplib:cinteropAFNetworkingIosX64 FAILED
e: Could not find "ktor-http-cio" in [/Users/wuhaibao/IdeaProjects/Idle/iosApp/Pods, /Users/wuhaibao/.konan/klib, /Users/wuhaibao/.konan/kotlin-native-macos-1.3.1/klib/common, /Users/wuhaibao/.konan/kotlin-native-macos-1.3.1/klib/platform/ios_x64].
Anybody could give me some tips?😕 My Gradle Config show as next follow
d
You can't use native dependencies from a generic sourceset
Instead of creating a bunch of native targets, try sticking with just one for iOS, and changing its architecture.
Now, please don't cross post to 5 different channels. If it takes a lot of effort to read about your issue, chances are you're not going to get many responses, if any.
If you remove the generic sourceset which all native targets depend on,and find a workaround, I reckon that will resolve your issue.
w
@Dico Thanks for your answer, But I want to publish the cocoapod lib from kotlin mpp lib with a fat framwork, Is it may possible?🙂
And when i change ktor version back to 1.2.2 it works fine
d
I dont have the expertise to answer
w
@Dico Thanks all the same for your heart answer🙂