e-sites / Natrium

A pre-build (Swift) script to alter your Xcode project at pre-build-time per environment, build configuration and target.
https://www.e-sites.nl
MIT License
146 stars 15 forks source link

Bool and Int values are not overridden per target #4

Closed eldare closed 6 years ago

eldare commented 6 years ago

It seems that non String values are not overridden correctly

Simplified example:

variables:
    message: "hello"
    isDoSomething: false
    someNumber: 0

target_specific:
    MyTarget:
        variables:
            message: "yo"
            isDoSomething: true
            someNumber: 1

This produces:

open static let message: String = "yo"
open static let isDoSomething: Bool = false
open static let someNumber: Int = 0

Notice the string is overridden correctly, but the bool and int were not.

Natrium version 5.7.0 Installed with Carthage

Thank you

eldare commented 6 years ago

Works great! thank you