Created
          March 12, 2012 21:24 
        
      - 
      
- 
        Save alikaragoz/2024778 to your computer and use it in GitHub Desktop. 
    Xcode Build Increment
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| buildPlist=${INFOPLIST_FILE} | |
| bundleVersion=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $buildPlist) | |
| buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" $buildPlist) | |
| buildNumber=$(($buildNumber + 1)) | |
| /usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" $buildPlist | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment