Yes, this is very related to this question, yet I think that question is adequately answered for XCode 3. Not sure if this should be merged or not.
So - Using similar i
If your script update both fields CFBundleVersion and CFBundleShortVersionString then .xcarchive will show you correct version
But may be you find better way? Way without updating CFBundleShortVersionString is appreciated.