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

james

03/29/2021, 1:26 AM
Hey all, losing my mind as a non-ios dev getting a Cocoapod dependency to work in my shared module.
Copy code
cocoapods {
        summary = "BackgroundApp"
        homepage = "testing"
        frameworkName = "BackgroundApp"

        ios.deploymentTarget = "10.0"

        specRepos {
            url("<https://github.com/localz/Spotz-iOS-Specs.git>")
        }
        pod("LocalzDriverSDK")
    }
Copy code
> Task :app:cinteropLocalzDriverSDKIosArm64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/w5/rb3knwwx5tz9hgbs3v2122tc0000gn/T/6978372664297732967.m:1:9: fatal error: module 'LocalzDriverSDK' not found
	at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:152)
	at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:68)
	at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:14)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:506)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:264)
	at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:74)
	at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
	at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:19)
	at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:41)
The dependency is on a custom spec repo here https://github.com/localz/Spotz-iOS-Specs.git Podspec itself https://github.com/localz/Spotz-iOS-Specs/blob/master/LocalzDriverSDK/1.7.2/LocalzDriverSDK.podspec The source git repo it points to https://github.com/localz/Localz-Driver-iOS-SDK Any ideas?
a

Alexey Glushkov

03/29/2021, 6:18 AM
Hi, I have the same problem. Could you star/like this bug https://youtrack.jetbrains.com/issue/KT-42167 and add your links in the comment? Hopefully, it’ll help KKM team solve the problem. In my case, I run gradle scan when this error happens and the problem temporarily disappear…
🙏 1
j

james

03/29/2021, 11:06 PM
Done 👍 thanks
👍 1
c

coolcat

07/21/2021, 8:49 PM
Has anyone managed to fix this yet?
3 Views