• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Why does my app suddenly return nil for the version string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Why does my app suddenly return nil for the version string?
      • From: G S <email@hidden>
  • Prev by Date: Re: Image Browser View Delete Item
  • Next by Date: Re: Why does my app suddenly return nil for the version string?
  • Previous by thread: Re: Image Browser View Delete Item
  • Next by thread: Re: Why does my app suddenly return nil for the version string?
  • Index(es):
    • Date
    • Thread