Print A Build Number to the Screen? iOS

I’d like to create a build number, increment it every time I build for iOS, and display a build number on the screen. I’d just like this for testing/bug tracking. Does anyone have any insight on the best way to go about doing this? Am I better off trying to display something else on the screen, like the bundle ID or something? Any help would be appreciated. Thanks!

(This would just be fore debug, not in the final build.)

wish I could help more. I'm afraid I'm useless at build/editor scripts! notice here I was desperately asking for help on a editor-type script :) http://answers.unity3d.com/questions/441246/editor-script-to-make-play-always-jump-to-a-start.html I like your idea "show the day" at least that would help .. are you a TESTFLIGHTAPP.com user? at least that gives you a build number in the TFA app.

–

Ugh... So I guess PlayerSettings is an editor class so when I try to use it I get a build error: Assets/Scripts/DebugPrint.js(10,30): BCE0005: Unknown identifier: 'PlayerSettings'. I realize I shouldn't be able to set the BundleVersion, but I thought I'd at least be able to get it so I can print it to the screen. Are there any work arounds so I can print this value to the screen?

–

Personally I like GUILayout :>

–

editor scripting ... cue mystic sitar music

–

funnily enough regarding "build pipeline" http://answers.unity3d.com/questions/441358/editor-postproc-script-files-to-xcode-50-reward-.html notice Graham's comments

–

1 Answer

1

Sorry for responding to such an old thread, but anyone who finds this might be interested in my Procedural Asset Framework (Unity Asset Store - The Best Assets for Game Making). It has an AppDetails script which gives you automatic build numbering (as an int), as well as a build time stamp (as a DateTime). It also gives you runtime access to the product name and company name you specify in the player settings.