krzysztofzablocki / crafter

Crafter - Xcode project configuration CLI made easy.
twitter.com/merowing_
547 stars 35 forks source link

set_build_settings not working on duplicated configurations #14

Open linkrjr opened 9 years ago

linkrjr commented 9 years ago

I am trying to duplicate my release settings and then set specific values for each configuration but it does not seem to work.

I have this duplicate_configurations({:staging => :release})

and right after I have

set_build_settings({ :'BUNDLE_ID_SUFFIX' => '.staging', :'BUNDLE_DISPLAY_NAME_SUFFIX' => 'staging', :'KZBEnv' => 'STAGING' }, configuration: :staging)

set_build_settings({ :'BUNDLE_ID_SUFFIX' => '', :'BUNDLE_DISPLAY_NAME_SUFFIX' => '', :'KZBEnv' => 'PRODUCTION' }, configuration: :release)

I end up with Release being set to Staging values

screen shot 2014-12-17 at 2 31 02 pm

If I invert the values like

duplicate_configurations({:release => :staging})

Then Staging is not created