sprint84
Re:Automatic Build Numbers in Xcode
on Tuesday July 15, 2014 @11:38AM (#8037043)
That's great, I also didn't know it existed. The only thing I need to check is if it will copy the updated values to the archived ipa.
Re:Automatic Build Numbers in Xcode
on Tuesday July 15, 2014 @11:36AM (#8037033)
No it doesn't, if you ensure it will run only on "Release".
When you deploy an app to a device via Xcode, unless you specify differently, it will compile in "Debug", so that won't cause an increment. Every iPad will have the same build.
Re:Automatic Build Numbers in Xcode
on Tuesday July 15, 2014 @11:35AM (#8037016)
The script runs only when you Archive.
Re:Automatic Build Numbers in Xcode
on Monday July 14, 2014 @08:53PM (#8034130)
What do you mean? Do you want to read the build number on runtime? There is a way to do that, when you put them in the plist, just run [[NSBundle mainBundle] infoDictionary][@"CFBundleVersion"] to get the NSString.
Re:Automatic Build Numbers in Xcode
on Monday July 14, 2014 @08:36PM (#8034065)
In the post, there is a workaround for the increment at each build/run.
You just need to be sure to run the script only in Release