Nikita Khlebushkin02/28/2020, 12:01 PM
The only place that I apply multiplatform plugin has
There 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.
How can I fix it?
kotlin("multiplatform") version "1.3.61"
Artyom Degtyarev [JB]02/28/2020, 12:17 PM
Nikita Khlebushkin02/28/2020, 12:26 PM
Artyom Degtyarev [JB]02/28/2020, 12:37 PM
Nikita Khlebushkin02/28/2020, 12:46 PM
showed me the content of my library that I exported via Cocoapods
Artyom Degtyarev [JB]02/28/2020, 1:10 PM
Nikita Khlebushkin02/28/2020, 1:11 PM
use_modular_headers! source <mailto:'firstname.lastname@example.orgemail@example.com>:%COMPANY%/%COMPANY%cocoapods.git' source '<https://github.com/CocoaPods/Specs.git>' target 'Demo' do pod 'ProjectAnalytics', '~> 0.1.0' end
is where the framework is being imported into the iOS project
can be the cause of it
Kotlin Gradle plugin version
Artyom Degtyarev [JB]02/28/2020, 2:32 PM
task execution, to avoid some problems with static/dynamic frameworks.
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.
Nikita Khlebushkin02/28/2020, 3:42 PM
Artyom Degtyarev [JB]03/02/2020, 6:25 AM
Nikita Khlebushkin03/02/2020, 7:22 AM
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 AM
Nikita Khlebushkin03/02/2020, 10:29 PM