ribesg
12/13/2019, 9:21 AMribesg
12/13/2019, 9:22 AMribesg
12/13/2019, 9:22 AMkotlin {
ios()
targets.withType<KotlinNativeTarget> {
compilations {
getByName("main") {
cinterops(Action {
create("Bugsnag") {
defFile("carthage/cinterop/Bugsnag.def")
includeDirs.allHeaders("carthage/Carthage/Build/iOS/Bugsnag.framework/Headers")
}
})
}
}
binaries.executable(listOf(buildType)) {
baseName = "app"
}
}
}
ribesg
12/13/2019, 9:23 AMribesg
12/13/2019, 9:23 AMdepends = Foundation
package = framework.Bugsnag
language = Objective-C
headers = Bugsnag.h
compilerOpts = -framework Bugsnag
linkerOpts = -framework Bugsnag
ribesg
12/13/2019, 9:24 AMribesg
12/13/2019, 9:27 AMArtyom Degtyarev [JB]
12/13/2019, 9:39 AMArtyom Degtyarev [JB]
12/13/2019, 9:41 AMribesg
12/13/2019, 10:15 AMkotlin {
ios()
targets.withType<KotlinNativeTarget> {
binaries.executable(listOf(buildType)) {
baseName = "app"
linkerOpts("-Fcarthage/Carthage/Build/iOS")
freeCompilerArgs += "-Xobjc-generics"
}
}
}
But at runtime it did not find the framework.Bugsnag
. I added it in XCode’s to-be-embedded Frameworks and it seems to work, but now I’m on the next problem : I don’t see my Gradle dependencies in iosMain. I’ll make another post for this one