Pat Teruel
12/07/2022, 5:31 AMLandry Norris
12/07/2022, 2:16 PMLandry Norris
12/07/2022, 2:33 PMLandry Norris
12/07/2022, 2:36 PMPat Teruel
12/07/2022, 8:18 PMPat Teruel
12/07/2022, 8:19 PMLandry Norris
12/07/2022, 10:31 PM/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/UIKit.framework/Headers
on your mac, you’ll find a header for UIWebView.h. Since the def file doesn’t exclude it, cinterop generates the delegates.Landry Norris
12/07/2022, 10:38 PMPat Teruel
12/07/2022, 10:43 PMLandry Norris
12/07/2022, 10:44 PMPat Teruel
12/07/2022, 10:45 PMLandry Norris
12/07/2022, 10:49 PMpackage=uikit
language=Objective-C
module=UIKit
headerFilter= {not entirely sure what to put here to exclude everything. Try experimenting with a few things}
compilerOpts = -framework UIKit
linkerOpts = -framework UIKit
Pat Teruel
12/07/2022, 10:49 PMLandry Norris
12/07/2022, 10:49 PMPat Teruel
12/07/2022, 10:50 PMPat Teruel
12/07/2022, 10:50 PMlistOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
baseName = "shared"
xcf.add(this)
}
it.compilations.getByName("main") {
val customInterop by cinterops.creating {
defFile(project.file("custom.def"))
}
}
}
Landry Norris
12/07/2022, 10:50 PMLandry Norris
12/07/2022, 10:51 PMLandry Norris
12/07/2022, 10:52 PM