The first time you use Python, look first: http://my.oschina.net/LangZiAiFer/blog/298763
Code management I use Git;
The project clone is as follows:
def Gitclone ():
os.system (' git clone https://[email protected]/xxx/goccia.git ~/desktop/20140804 ')
Return
Https://[email Protected]/xxx/goccia.git is a git server path without care;
~/desktop/20140804 is the target path, where to put it with you
Checkout as follows:
First: Enter the project storage path:cd/users/gbry/desktop/20140804
def gitcheckout ():
Os.system (' cd/users/gbry/desktop/20140804;git fetch && git checkout dev ')
return
Compile
def Build_debug ():
print "Build Debug Start"
Os.system (' xcodebuild-version ')
Os.system (' Xcodebuild-showsdks ')
Os.system (' xcodebuild-list ')
Os.system (' cd/users/gbry/desktop/20140804;xcodebuild-sdk iphoneos7.1 ')
return
See: http://www.cnblogs.com/xiaodao/archive/2012/03/01/2375609.html
Packaging IPA:
def Build_ipa ():
Os.system (' xcrun-sdk iphoneos packageapplication-v/users/gbry/desktop/20140804/build/release-iphoneos/ Goccia.app-o/users/gbry/desktop/goccia_%s.ipa '%time.strftime ('%y-%m-%d ', Time.localtime (Time.time ( ))))
return
See: http://www.devdiv.com/ios_-blog-1511-49991.html
then call the above function in turn:
Gitclone ()
Gitcheckout ()
Build_debug ()
Build_ipa ()
I would like to make a record of this, the great god please around ...
To be continued 、、、