coletz
01/26/2019, 1:35 PMrusshwolf
01/26/2019, 1:52 PMcoletz
01/26/2019, 1:55 PMrusshwolf
01/26/2019, 2:00 PMcoletz
01/26/2019, 2:07 PMrusshwolf
01/26/2019, 2:08 PMtask copyFramework {
def buildType = project.findProperty('kotlin.build.type') ?: 'DEBUG'
def framework = kotlin.targets.ios.compilations.main.target.binaries.findFramework("Shared", buildType)
dependsOn framework.linkTask
doLast {
def srcFile = framework.outputFile
def targetDir = getProperty('configuration.build.dir')
copy {
from srcFile.parent
into targetDir
include 'Shared.framework/**'
include 'Shared.framework.dSYM'
}
}
}
def iosTarget = System.getenv('SDK_NAME')?.startsWith("iphoneos") ? presets.iosArm64 : presets.iosX64
targetFromPreset(iosTarget, "ios") {
binaries {
framework("Shared")
}
}
coletz
01/26/2019, 2:32 PMrusshwolf
01/26/2019, 3:30 PMcoletz
01/26/2019, 9:33 PMinclude 'Shared.framework'
<-- but my framework is app
, not Shared
...Everything is working now