yusuf3000
10/09/2018, 11:05 AMkotlin-platform-native
plugin? The closest thing I could find was this issue: https://github.com/JetBrains/kotlin-native/issues/1764 but it’s using konan
yusuf3000
10/09/2018, 11:16 AMld: framework not found xxxxx
yusuf3000
10/09/2018, 11:20 AMcomponents.main{
dependencies{
cinterop('Framework'){
def productsDir = new File("Framework").absolutePath
compilerOpts "-F${productsDir}"
linkerOpts "-F${productsDir}"
includeDirs "${productsDir}/Framework.framework/Headers"
}
}
}
drew
10/09/2018, 4:15 PMextraOpts "-linker-options", "-F${productsDir}"
to the compilations.main
block.drofwarcs
10/09/2018, 5:41 PMlanguage = Objective-C
headers = AFURLSessionManager.h AFURLResponseSerialization.h AFHTTPSessionManager.h
compilerOpts = -framework AFNetworking
linkerOpts = -framework AFNetworking
You can add more headers as you see fit. I only needed those three in my project.
Gradle:
components.main {
def productsDir = new File("").absolutePath
targets = ['ios_arm64', 'ios_x64']
outputKinds = [EXECUTABLE]
allTargets {
linkerOpts '-rpath', '@executable_path/Frameworks'
linkerOpts "-F${productsDir}"
}
dependencies {
cinterop('AFNetworking'){
packageName 'com.afnetworking'
compilerOpts "-F${productsDir}"
linkerOpts "-F${productsDir}"
includeDirs{
allHeaders "${productsDir}/AFNetworking.framework/Headers"
}
}
}
}
yusuf3000
10/10/2018, 7:35 AM