I cannot figure out how to configure cinterop section to create the bindings to a framework that depends on another framework.
The imports in the framework header file do not fail, but any use of the symbols from those frameworks fail.
I tried adding the names of the dependent framework to the compiler options
cinterops {
val mapbox by creating {
defFile = File("$projectDir/libs/lib2.def")
packageName("com.foo")
// lib2 depends on lib 1
compilerOpts("-F$lib1FrameworkPath", "-F$lib2FrameworkPath", "-framework", "lib1")
}