returns null in the build script, is this because me using kotlin script instead of groovy now?
JoakimForslund
04/16/2019, 1:17 PM
This is with the cocoapods plugin active
s
Steven
04/16/2019, 4:04 PM
I am not sure what you are trying to print
j
JoakimForslund
04/17/2019, 7:00 AM
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.
JoakimForslund
04/17/2019, 7:57 AM
For future reference, it seems those properties are only available if you build from xcode
s
Steven
04/17/2019, 12:27 PM
yes, actually if you look at xcode build scripts, you will see one that uses ./gradlew with parameters from xcode
Steven
04/17/2019, 12:31 PM
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