https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

Anvith

10/16/2020, 5:58 AM
I recently upgraded to kotlin 1.4.1 and it seems that the adding any pod file via the native.cocoapods plugin is causing the the gradle task
linkDebugFrameworkIosSim
to throw an error
Could not find <project-name> in …
I’ve attached the relevant trace for completeness. How do I resolve this or am I missing something?
a

Artyom Degtyarev [JB]

10/16/2020, 7:08 AM
Hello, @Anvith! The error seems similar to an old problem with dashes in the framework name. Is this true, or I’m getting something wrong?
a

Anvith

10/16/2020, 8:03 AM
Hi @Artyom Degtyarev [JB]! Thanks for responding. My cocoapods config looks like this
Copy code
cocoapods {
    // Configure fields required by CocoaPods.
    ios.deploymentTarget = "10.0"
    summary = "Abc Mobile Core"
    homepage = "<https://github.com/anvith/abc-shared>"
    frameworkName= "abcframework"
    pod("DarklyEventSource", "~> 4.1")

}
And I’m still getting the error, also this wasn’t the case with kotlin
1.3.72
a

Artyom Degtyarev [JB]

10/16/2020, 8:15 AM
Ok. Could you please also run
./gradlew :AbcMobileCore:linkDebugFrameworkIosSim --info
and post the results?
a

Anvith

10/16/2020, 9:21 AM
Sure, here it is
a

Artyom Degtyarev [JB]

10/16/2020, 1:46 PM
I was unable to reproduce it locally. Could you share the project? It can be done using kotl.in/issue. From logs i would assume that something is wrong with
AbcMobileCore.klib
, maybe manifest file is incorrect.
a

Anvith

10/19/2020, 2:48 AM
I’ll try making an min reproducible version and raise an issue.
3 Views