Created
August 15, 2018 19:53
-
-
Save kezzico/c8f149c2cae8b64e481f2809f9bade9f to your computer and use it in GitHub Desktop.
This file contains 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 | |
set -e | |
projectname="<YOUR_PROJECT_NAME>" | |
projectpath="`pwd`/$projectname.xcodeproj" | |
workspace="$projectname.xcworkspace" | |
schemename="$projectname" | |
provisionprofile="iOS Team Provisioning Profile: 68WTNC8XPF.co.kezzi.$projectname" | |
plistPath="$projectname/Info.plist" | |
# /usr/libexec/PlistBuddy | |
#lastBuildNumber=`PlistBuddy $plistPath -c "Print:CFBundleVersion"` | |
#buildNumber=`PlistBuddy $plistPath -c "Print:CFBundleVersion"` | |
#let buildNumber+=1 | |
#PlistBuddy $plistPath -c "Set:CFBundleVersion $buildNumber" | |
xcodebuild -workspace "$workspace" -scheme "$schemename" -sdk "iphoneos" -configuration "Release" PROVISIONING_PROFILE="$provisionprofile" | |
#clean | |
xcodebuild clean -project "$projectpath" -configuration Release -alltargets | |
#archive | |
xcodebuild archive -workspace "$workspace" -scheme "$schemename" -archivePath "$projectname.xcarchive" | |
#ipa | |
xcodebuild -exportArchive -archivePath "$projectname.xcarchive" -exportPath "./" -exportOptionsPlist export-options.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export options plist