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
You can't use native dependencies from a generic sourceset
Dico
08/11/2019, 7:09 PM
Instead of creating a bunch of native targets, try sticking with just one for iOS, and changing its architecture.
Dico
08/11/2019, 7:10 PM
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.
Dico
08/11/2019, 7:11 PM
If you remove the generic sourceset which all native targets depend on,and find a workaround, I reckon that will resolve your issue.
w
wuseal
08/12/2019, 2:52 PM
@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?🙂
wuseal
08/12/2019, 3:40 PM
And when i change ktor version back to 1.2.2 it works fine
d
Dico
08/12/2019, 5:36 PM
I dont have the expertise to answer
w
wuseal
08/13/2019, 7:22 AM
@Dico Thanks all the same for your heart answer🙂