Jamie Craane
09/07/2021, 12:29 PMdoLast {
copy {
from("${project.rootDir}/android-app/src/commonMain/resources/ios")
into("${targetDir}/shared.framework")
}
}
What is the best approach to do this with the embedAndSignAppleFrameworkForXcode task? I was trying something like this (in the build script of the shared module):
tasks {
named("embedAndSignAppleFrameworkForXcode") {
doLast {
val targetDir = findProperty("configuration.build.dir")
// Copy resources here
}
}
}
But the message I get is: Task with name ‘embedAndSignAppleFrameworkForXcode’ not found in project ‘:shared’.
I updated to Kotlin 1.5.30. The task is correctly ran from Xcode.hfhbd
09/07/2021, 12:57 PMJamie Craane
09/07/2021, 1:22 PMKonstantin Tskhovrebov
09/07/2021, 7:20 PMLuis
09/08/2021, 12:02 AMJamie Craane
09/08/2021, 6:23 AMJamie Craane
09/08/2021, 6:48 AMnamed("linkDebugFrameworkIos") {
doFirst {
val configuration = System.getenv("CONFIGURATION")
val sdkName = System.getenv("SDK_NAME")
copy {
from("${project.rootDir}/shared/src/commonMain/resources/ios")
into("${project.buildDir}/xcode-frameworks/$configuration/$sdkName/shared.framework")
}
}
}