Closed RomeuG closed 4 years ago
Fixed.
It seems that changing the ios project related stuff to this
// ios
if (project.findProperty("kotlin.native.cocoapods.target") == "ios_arm") {
iosArm64('ios') {
binaries {
framework('Common')
}
}
} else {
iosX64('ios') {
binaries {
framework('Common')
}
}
}
and adding an xcode packing task:
task packForXcode {
def buildType = project.findProperty("kotlin.build.type") ?: "DEBUG"
def target = project.findProperty("kotlin.target") ?: "ios"
def framework = kotlin.targets."$target".compilations
.main.target.binaries.findFramework("Common", buildType)
dependsOn framework.linkTask
doLast {
copy {
from framework.outputFile.parent
into framework.outputFile.parentFile
include 'data.framework/**'
include 'data.framework.dSYM'
}
}
}
Fixed the issue.
Hello.
I am trying to integrate this library into a project and in iOS, Gradle gives the following error:
My Gradle file, although being in Groovy, it seems to be pretty much correct?
I also have
enableFeaturePreview("GRADLE_METADATA")
in mysettings.gradle
, removing it causes some problems. Also, it works well on Android.Any clues?
Thanks