Am I missing something here, trying to use cocoapo...
# multiplatform
j
Am I missing something here, trying to use cocoapods + the new 1.3.30 spec but both:
Copy code
println("DEVICE: ${project.findProperty("kotlin.native.cocoapods.target")}")
and
Copy code
println("DEVICE: ${project.findProperty("device")}")
returns null in the build script, is this because me using kotlin script instead of groovy now?
This is with the cocoapods plugin active
s
I am not sure what you are trying to print
j
These are properties that jetbrains use to determine what device/arch one is building from for iOS, you can find those examples in the samples.
For future reference, it seems those properties are only available if you build from xcode
s
yes, actually if you look at xcode build scripts, you will see one that uses ./gradlew with parameters from xcode
the script looks something like this (i can't send snippets in threads, but here goes): "$SRCROOT/../gradlew" -p "$SRCROOT/../greeting" copyFramework \ -Pconfiguration.build.dir="$CONFIGURATION_BUILD_DIR" \ -Pkotlin.build.type="$KOTLIN_BUILD_TYPE" \ -Pdevice="$KOTLIN_DEVICE where $CONFIGURATION_BUILD_DIR is an xcode setting and $KOTLIN_BUILD_TYPE and $KOTLIN_DEVICE are settings in the build settings > user defined variables of your lib framework