iOS release builds

Hi, just a quick question - if we want to do a release build on iOS - do we have to do that manually by editing the scheme in xCode or is there a way of doing it from the command line?

At the moment I’m not sure if adding the “-debug” does anything for iOS builds? (as it seems to just build debug by default). I may be wrong though.

Thanks,
Greg

Using the -release option should produce a release build on all targets.

There is also -final, which is similar. However, -final may enable stronger dead code elimination on certain targets, which sometimes breaks apps that use a lot of reflection, so it is recommended to perform some extra testing when trying -final.

Oh wow- I never knew about “-release” that’s really awesome! thanks for that.