felislynx
02/13/2020, 10:13 AMArtyom Degtyarev [JB]
02/13/2020, 11:15 AM.klib
is actually presented an your project files. There should be something like <projectName>-cinterop-<podName>.klib
.felislynx
02/13/2020, 11:25 AMfelislynx
02/13/2020, 11:26 AMimport cocoapods.FirebaseFirestore
marks cocoapods in redArtyom Degtyarev [JB]
02/13/2020, 11:29 AMfelislynx
02/13/2020, 11:29 AMfelislynx
02/13/2020, 11:30 AMfelislynx
02/13/2020, 11:41 AMArtyom Degtyarev [JB]
02/13/2020, 11:47 AMfelislynx
02/13/2020, 11:49 AMfelislynx
02/13/2020, 11:52 AMArtyom Degtyarev [JB]
02/13/2020, 11:56 AMfelislynx
02/13/2020, 11:58 AMfelislynx
02/13/2020, 12:01 PMfelislynx
02/13/2020, 12:01 PMArtyom Degtyarev [JB]
02/13/2020, 12:22 PMimport cocoapods.FirebaseFirestore.*
seems to resolve correctly. Have you tried to invalidate caches? For now, I’m kinda out of ideas here.felislynx
02/13/2020, 1:35 PMfelislynx
02/13/2020, 1:36 PMArtyom Degtyarev [JB]
02/13/2020, 1:44 PMpod("FirebaseFirestore")
line in the SharedCode/build.gradle.kts
, cocoapods section.
• Then executed :SharedCode:podspec
, opened Xcode project and built it.
• After that, in the Android Studio added import as above into the SharedCode/src/iosMain/kotlin/actual.kt
file.felislynx
02/13/2020, 1:45 PMfelislynx
02/13/2020, 1:45 PMfelislynx
02/13/2020, 1:46 PMfelislynx
02/13/2020, 1:57 PMfelislynx
02/13/2020, 1:57 PMfelislynx
02/14/2020, 6:04 AMfelislynx
02/14/2020, 6:06 AM/Users/lynx/Library/Developer/Xcode/DerivedData/KotlinIOS-fdgjjjppacwrrnfxaylegnufjofy/Build/Intermediates.noindex/KotlinIOS.build/Debug-iphonesimulator/KotlinIOS.build/Script-47729E7122F480EB00B9B36B.sh: line 4: cd: /Users/lynx/Workspaces/Tests/mpp-ios-android/native/KotlinIOS/../../SharedCode/build/xcode-frameworks: No such file or directory
/Users/lynx/Library/Developer/Xcode/DerivedData/KotlinIOS-fdgjjjppacwrrnfxaylegnufjofy/Build/Intermediates.noindex/KotlinIOS.build/Debug-iphonesimulator/KotlinIOS.build/Script-47729E7122F480EB00B9B36B.sh: line 5: ./gradlew: No such file or directory
felislynx
02/14/2020, 6:07 AMArtyom Degtyarev [JB]
02/14/2020, 6:26 AM/Users/lynx/Workspaces/Tests/mpp-ios-android/native/KotlinIOS/../../SharedCode/build/xcode-frameworks
and /Users/lynx/Workspaces/Tests/mpp-ios-android/gradlew
. If not, please try to execute :SharedCode:packForXcode
task manually, at least it should create the xcode-frameworks
directory.felislynx
02/14/2020, 6:31 AM> Configure project :SharedCode
Kotlin Multiplatform Projects are an experimental feature.
> Task :SharedCode:generateDefAFNetworking UP-TO-DATE
> Task :SharedCode:cinteropAFNetworkingIos FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':SharedCode:cinteropAFNetworkingIos'.
> Cannot perform cinterop processing for AFNetworking: cannot determine headers location.
Probably the build is executed from command line.
Note that a Kotlin/Native module using CocoaPods dependencies can be built only from Xcode.
felislynx
02/14/2020, 6:31 AMArtyom Degtyarev [JB]
02/14/2020, 6:37 AMFramework Search Paths
in your project?felislynx
02/14/2020, 6:40 AMfelislynx
02/14/2020, 6:41 AMfelislynx
02/14/2020, 6:41 AMfelislynx
02/14/2020, 6:41 AMfelislynx
02/14/2020, 6:46 AMfelislynx
02/14/2020, 6:50 AMArtyom Degtyarev [JB]
02/14/2020, 6:51 AMfelislynx
02/14/2020, 7:02 AMfelislynx
02/14/2020, 7:15 AMfelislynx
02/14/2020, 7:15 AMfelislynx
02/14/2020, 7:15 AMfelislynx
02/14/2020, 7:17 AMfelislynx
02/14/2020, 7:21 AMfelislynx
02/14/2020, 7:23 AMArtyom Degtyarev [JB]
02/14/2020, 7:28 AMfelislynx
02/14/2020, 7:33 AMfelislynx
02/14/2020, 8:09 AMfelislynx
02/14/2020, 8:09 AMfelislynx
02/14/2020, 8:11 AMfelislynx
02/14/2020, 8:11 AMfelislynx
02/14/2020, 8:24 AMArtyom Degtyarev [JB]
02/14/2020, 8:31 AMandroid()
target instead of jvm("android")
. And then, your android source sets will become Android-styled(I mean, all this main, debugMain, etc
instead of <targetName><Main | Test>
, so the dependencies section will need some adjustments.felislynx
02/14/2020, 8:35 AM