Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cocoapodsext fatal error: module 'PromisesSwift' not found #192

Closed
maxdelia opened this issue Apr 21, 2021 · 0 comments
Closed

cocoapodsext fatal error: module 'PromisesSwift' not found #192

maxdelia opened this issue Apr 21, 2021 · 0 comments

Comments

@maxdelia
Copy link
Contributor

Hi, I'm trying to add this pod to my project using the following code:

cocoapodsext {
        summary = "Common library for the KaMP starter kit"
        homepage = "https://github.com/touchlab/KaMPKit"
        framework {
            isStatic = false
            export(Deps.kermit)
            transitiveExport = true
        }
        pod("PromisesSwift")
    }

and I'm getting the following error:

> Task :shared:cinteropPromisesSwiftIos FAILED
Exception in thread "main" java.lang.Error: /var/folders/y7/yrztdhk977d4nh8t12ks9bkc0000gn/T/1754490655123836472.m:1:9: fatal error: module 'PromisesSwift' 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)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':shared:cinteropPromisesSwiftIos'.

I've tried adding version, and then also module name, but nothing changed. I also get the same error adding frameworks like Alamofire or AFNetworking, I would say that I'm not able to add any pod at all. What am I doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant