Nikita Khlebushkin
02/28/2020, 12:01 PMThere is a library attached to the project that was compiled with an older Kotlin/Native compiler and can't be read in IDE:
"analytics-cinterop-Analytics.klib" at $project/analytics/build/classes/kotlin/iosX64/main/analytics-cinterop-Analytics.klib
Please edit Gradle buildfile(s) to use Kotlin Gradle plugin version 1.3.61. Then rebuild the project and re-import it in IDE.
The only place that I apply multiplatform plugin has
kotlin("multiplatform") version "1.3.61"
How can I fix it?Artyom Degtyarev [JB]
02/28/2020, 12:17 PMNikita Khlebushkin
02/28/2020, 12:26 PMArtyom Degtyarev [JB]
02/28/2020, 12:37 PMNikita Khlebushkin
02/28/2020, 12:46 PMNikita Khlebushkin
02/28/2020, 12:53 PMNikita Khlebushkin
02/28/2020, 12:59 PMklib contents
showed me the content of my library that I exported via CocoapodsArtyom Degtyarev [JB]
02/28/2020, 1:10 PMNikita Khlebushkin
02/28/2020, 1:11 PMNikita Khlebushkin
02/28/2020, 1:11 PMNikita Khlebushkin
02/28/2020, 1:12 PMNikita Khlebushkin
02/28/2020, 1:12 PMNikita Khlebushkin
02/28/2020, 1:14 PMuse_modular_headers!
source <mailto:'git@bitbucket.org|'git@bitbucket.org>:%COMPANY%/%COMPANY%cocoapods.git'
source '<https://github.com/CocoaPods/Specs.git>'
target 'Demo' do
pod 'ProjectAnalytics', '~> 0.1.0'
end
Nikita Khlebushkin
02/28/2020, 1:14 PMimport analytics
is where the framework is being imported into the iOS projectNikita Khlebushkin
02/28/2020, 1:14 PMNikita Khlebushkin
02/28/2020, 1:15 PMNikita Khlebushkin
02/28/2020, 1:16 PMKotlin Gradle plugin version
can be the cause of itArtyom Degtyarev [JB]
02/28/2020, 2:32 PM./gradlew podspec
task execution, to avoid some problems with static/dynamic frameworks. vendored_framework=
parameter in the Xcode build process. For the actual build, on some stage the plugin compiles the real framework instead of dummy one, and everything goes fine. In your case, it seems like some part of this fragile pipeline was broke.Artyom Degtyarev [JB]
02/28/2020, 2:34 PMNikita Khlebushkin
02/28/2020, 3:42 PMArtyom Degtyarev [JB]
03/02/2020, 6:25 AMNikita Khlebushkin
03/02/2020, 7:22 AMlipo
and put it back into one of frameworks. Finally, I edit Info.plist to mark supported platforms (IPhoneOS, IPhoneSimulator), and add this framework to an empty Cocoapod as dependency. Now, when I include this empty Cocoapod into Xcode project, I am able to build with my framework.
It's a lot of manual processes, but as long as it works...Artyom Degtyarev [JB]
03/02/2020, 7:30 AMlipo
manipulations.Nikita Khlebushkin
03/02/2020, 10:29 PM