Hi i'm trying to import a swift library using cint...
# multiplatform
d
Hi i'm trying to import a swift library using cinterop and i cannot find the import at all: In my gradle file i'm using:
Copy code
iosTarget.compilations.getByName("main") {
    cinterops.creating {
        definitionFile.set(project.file("src/nativeInterop/cinterop/appsflyer.def"))

        compilerOpts(
            "-framework",
            "AppsFlyerLib",
            "-F/src/nativeInterop/cinterop/AppsFlyerLib.framework/",
        )
    }
}

iosTarget.binaries.all {
    linkerOpts(
        "-framework",
        "AppsFlyerLib",
        "-F/src/nativeInterop/cinterop/AppsFlyerLib.framework/",
    )
}
the appsflyer.def file contains:
Copy code
language = Objective-C
modules = AppsFlyerLib
package = AppsFlyerLib
and inside the AppsFlyerLib.framework i have Headers, Modules, Versions and AppsFlyerLib everything builds properly, even the
./gradlew :analytics:linkDebugFrameworkIosArm64
command has no issues, but i can't find the import anywhere in the
iosMain
module
t
@Andrey Yastrebov could you help here?
👀 1
d
this is the framework structure
and the module.modulemap:
Copy code
framework module AppsFlyerLib {
 umbrella header "AppsFlyerLib.h"

 export *
 module * { export * }
}
if it helps