Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode project's "Build number"

What is a Build number and what is its use? Is it the same as version number?

like image 764
Peter V Avatar asked Sep 10 '11 11:09

Peter V


People also ask

How can I see my build in Xcode?

Use the Xcode report navigator. To show the report navigator, either (1) click the rightmost button in the navigator bar at the top of the navigator area, which is on the left side of the workspace window, (2) select View > Navigators > Reports from the menu bar at the top of the screen, or (3) press ⌘ 9 .

What is version and build number in Xcode?

These are the actual software version numbers, as opposed to the values used for marketing. If you go to Xcode menu > About Xcode, you'll see the Version and Build numbers. If you hit the More Info... button you'll see a bunch of different versions. Since the More Info...

What is iOS build number?

To see your macOS version and build numbers on a Mac, choose Apple > About This Mac and click the version number. In iOS or iPadOS, go to Settings > General > About and tap Software Version. For watchOS, in your iPhone's Watch app, go to General > About and look at the Version line.

How do I find the build number of an iOS app?

Option 1View the App's Preferences in Settings Open the Settings app, select the preferences for the app in question (scroll to find it or use the search bar at the top of Settings), and you'll be able to tell right away if the version and build number are there or not.


1 Answers

Additionally, if you add CFBuildDate as a string and CFBuildNumber as a string into your info.plist, the following shell script (when added to your run script build phase /bin/bash will automatically update your build number and date:

    # Auto Increment Version Script buildPlist=${INFOPLIST_FILE} CFBuildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBuildNumber" $buildPlist) CFBuildNumber=$(($CFBuildNumber + 1)) /usr/libexec/PlistBuddy -c "Set :CFBuildNumber $CFBuildNumber" $buildPlist CFBuildDate=$(date +%Y%m%d%H%M%S) /usr/libexec/PlistBuddy -c "Set :CFBuildDate $CFBuildDate" $buildPlist 
like image 61
cdasher Avatar answered Sep 17 '22 14:09

cdasher