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:
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:
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