Activity Stream
93,432 MEMBERS
44 ONLINE
A git build number script XCode A git build number script XCode A git build number script XCode A git build number script XCode A git build number script XCode
Results 1 to 1 of 1
  1.    Tweet this post   Share This Post On Facebook Share This Post On Google+
    #1
    Programmar
    Xcode's Avatar

    Devil A git build number script XCode

    abbrev-commit hash and will inject it into the current build’s Info.plist file

    Source Code : 
    import os
    from Foundation import NSMutableDictionary
     
    version 
    os.popen4("git rev-parse --short HEAD")[1].read()
    info os.environ['INFOPLIST_PATH']
     
    plist NSMutableDictionary.dictionaryWithContentsOfFile_(info)

    [Login or Register to remove this advertisement]

    plist['CFBundleVersion'] = version
    plist
    .writeToFile_atomically_(info1
    Xcode Reviewed by Xcode on . A git build number script XCode abbrev-commit hash and will inject it into the current build’s Info.plist file import os from Foundation import NSMutableDictionary version = os.popen4("git rev-parse --short HEAD").read() info = os.environ plist = NSMutableDictionary.dictionaryWithContentsOfFile_(info) plist = version Rating: 5

  2. The Following 1 Users Say Thank You to Xcode For This Useful Post:
    [ Click to Expand ]

    Rebel (4th March 2012)

  3.   Advertisements

Thread Information

Users Browsing this Thread

There Are Currently 1 Users Browsing This Thread. (0 Members and 1 Guests)

Similar Threads

  1. Export Script - Sample1
    By Xcode in forum C#
    Replies: 0
    Last Post: 17th March 2013, 05:12 PM
  2. Replies: 0
    Last Post: 17th March 2013, 05:11 PM
  3. Malware Analysis Script
    By Mobile_Guru in forum Ruby
    Replies: 0
    Last Post: 25th September 2012, 10:25 PM
  4. Xcode 3.2.5 and OS SDK 4.2 Final (MacOSX)
    By haingoc in forum iPhone | iPad | iPod - Desktop Applications
    Replies: 0
    Last Post: 11th June 2011, 12:41 AM
  5. XCode 3.2.6 iOS 4.3 SDK
    By hieubac3 in forum Jailbreak / Downgrade /Upgrade
    Replies: 0
    Last Post: 31st March 2011, 04:07 PM

Tags for this Thread

BE SOCIAL
A git build number script XCode A git build number script XCode A git build number script XCode A git build number script XCode A git build number script XCode