Monday, September 5, 2011

Parameters into iOS Apps, XCode 4.x

I needed to get arguments and version numbers and so forth into an iOS app.
The arguments come in via the Scheme. You can have one scheme per target, or one scheme per multiple targets. I'm using arguments in the format paramOne=35.5 paramTwo=release

Then you can pick up the arguments like this:

Version numbers, differently, come in via the target. You get a "version" number and a "build" number.

Then you can pick up the build and version with something like this

Yet another way, from my colleague Jose at Thingee:

No comments: