Skip to content

Instantly share code, notes, and snippets.

View imhafeez's full-sized avatar
🎯
Focusing

Hafeez Ahmed imhafeez

🎯
Focusing
View GitHub Profile
@imhafeez
imhafeez / xCodeServerCI-PodsInstall.sh
Created October 10, 2019 05:14
xCode Server CI Triggers
#!/bin/sh
# For Pods install
export PATH=/usr/local/opt/ruby/bin:/usr/local/bin:$PATH
export LC_ALL="en_US.UTF-8"
cd $XCS_PRIMARY_REPO_DIR
pod install
@imhafeez
imhafeez / xCodeServerCI-BuildUpload.sh
Created October 10, 2019 05:13
xCode Server CI Build Upload Trigger
#!/bin/sh
# For Build upload.
/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/Frameworks/ITunesSoftwareService.framework/Support/altool --upload-app -f $XCS_PRODUCT -u $TESTFLIGHT_USERNAME -p $TESTFLIGHT_PASSWORD
@imhafeez
imhafeez / AutoIncriment-BuildNo.sh
Last active October 10, 2019 05:15
xCode Server CI Triggers
#!/bin/sh
buildNumber=$(/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${PROJECT_DIR}/${INFOPLIST_FILE}")
buildNumber=$XCS_INTEGRATION_NUMBER
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}"