Even André Fiskvik
10/18/2020, 8:29 PMEven André Fiskvik
10/18/2020, 10:02 PM.podspec
file to include a specific variable based on the build type:
spec.pod_target_xcconfig = {
...,
'KOTLIN_CONFIGURATION' => 'Release',
'KOTLIN_CONFIGURATION[config=Debug]' => 'Debug'
}
and in the script-phase I use $KOTLIN_CONFIGURATION
instead of $CONFIGURATION
. This assumes that any configuration that is not Debug is a Release, which is probably not flexible enough for the community as a default solution.Alex Pogrebnyak
10/20/2020, 8:04 AMAlex Pogrebnyak
10/20/2020, 8:05 AM