Will Hess
08/14/2020, 7:46 PMimport org.jetbrains.kotlin.gradle.tasks.FatFrameworkTask
task into my build.gradle
file?
I am trying to create a fat framework that can be consumed in my iOS sample application.Kris Wong
08/14/2020, 9:08 PMefemoney
08/15/2020, 5:33 AMpluginManagement
block instead of the buildscript
block for defining the plugin dependenciesefemoney
08/15/2020, 5:39 AMKris Wong
08/17/2020, 1:04 PMefemoney
08/17/2020, 1:05 PMWill Hess
08/17/2020, 5:51 PMKris Wong
08/17/2020, 5:52 PMWill Hess
08/17/2020, 5:55 PMcustom_project_kotlin_common
-> custom_project_kotlin_ux
(this outputs fat framework) -> iOS framework project custom_project_ux_ios
(this outputs fat framework to be consumed by iOS Application) -> custom_app_ios
sample application.Will Hess
08/17/2020, 5:57 PMcustom_project_kotlin_common
and custom_project_kotlin_ux
kotlin projectWill Hess
08/17/2020, 6:11 PMCould not get unknown property 'ios' for KotlinTarget container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer.
Will Hess
08/17/2020, 6:12 PMtargets {
iosX64("iosX64")
iosArm64("ios64")
configure([iosX64, ios64]) {
binaries.framework {
baseName = "my_framework"
}
}
}
// Create a task building a fat framework.
task debugFatFramework(type: FatFrameworkTask) {
// The fat framework must have the same base name as the initial frameworks.
baseName = "my_framework"
// The default destination directory is '<build directory>/fat-framework'.
destinationDir = file("$buildDir/fat-framework/debug")
// Specify the frameworks to be merged.
from(
targets.iosX64.binaries.getFramework("DEBUG"),
targets.ios64.binaries.getFramework("DEBUG")
)
}
ilya.matveev
08/18/2020, 12:19 PMI am also having an error in my build.gradle file in the copyFramework task:
Could not get unknown property 'ios' for KotlinTarget container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer.Your snippet doesn't contain the
copyFramework
task. Could you please provide a part of the the buildscript that contains this task?
the fat framework task would live in the build.gradle of theIs it correct that you try to create two fat frameworks: one fromandcustom_project_kotlin_common
kotlin projectcustom_project_kotlin_ux
custom_project_kotlin_common
and another from custom_project_kotlin_ux
, and then attach both of them to the same iOS app?