Difference between Xcode version (CFBundleShortVersionString) and build (CFBundleVersion)

前端 未结 4 610
暖寄归人
暖寄归人 2020-12-12 10:54

\"App

In Xcode 4, I see this for my target summary:

The \"Version\" input corresponds

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 11:47

    The Apple document "Information Property List Key Reference" says that CFBundleShortVersionString represents a release version, whereas CFBundleVersion represents any build, released or not. Also, CFBundleShortVersionString can be localized, though I don't know why you'd want to, since they say it is supposed to be "a string comprised of three period-separated integers". For a release build, it would be reasonable to make the two numbers the same. For a development build, you might tack something else on to the CFBundleVersion, maybe another dot and integer.

提交回复
热议问题