theappbusiness / ConfigGenerator

Configuration file code generator for use in Xcode projects
MIT License
157 stars 19 forks source link

configen fails when project path has spaces #19

Closed KITSDavidHardiman closed 7 years ago

KITSDavidHardiman commented 7 years ago
screen shot 2017-06-26 at 12 56 53
jonhocking commented 7 years ago

Thanks for raising this @KITSDavidHardiman.

We typically call Configen via a shell script file and pass in environment variables. We can then include enclosing quotation marks "" around any paths. For example:

env=$1 "${SRCROOT}/XXX/Config/configen" -p "${SRCROOT}/XXX/Config/Config-$env.plist" -h "${SRCROOT}/XXX/Config/Config.mapping" -n Config -o "${SRCROOT}/XXX/Config/"

Where XXX is the project name.

We typically call this shell script via an External Build System target as part of the build chain in Xcode. You can find one of these by adding a new target to your project and looking under the Cross Platform tab.

Hope that helps. Jon

KITSDavidHardiman commented 7 years ago

Hmm ok, @lucianomarisi FYI. We're missing quotes around the setup. One to address at some point I guess.