Why does my app suddenly return nil for the version string?
Why does my app suddenly return nil for the version string?
- Subject: Why does my app suddenly return nil for the version string?
- From: G S <email@hidden>
- Date: Sun, 11 Dec 2011 18:23:14 -0800
Hi all.
My app just started crashing on launch, and I traced it to this call
returning nil:
NSString* versionString = [[NSBundle mainBundle]
objectForInfoDictionaryKey:(NSString*)kCFBundleVersionKey];
Anyone know why this would suddenly start happening? Looking in the
app's plist, there's no mention of a bundle version, short or
otherwise. But I didn't manually edit this file since the application
last worked.
You can set a version on the target's Summary tab, so I tried that.
It didn't do anything; the returned string is still nil. What is the
point of this field?
Any insights appreciated.
Gavin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden