Skip to content

Instantly share code, notes, and snippets.

@laiso
Created January 21, 2014 10:28
Show Gist options
  • Select an option

  • Save laiso/8537660 to your computer and use it in GitHub Desktop.

Select an option

Save laiso/8537660 to your computer and use it in GitHub Desktop.
### TestFlight ###
API_TOKEN="YOUR_TESTFLIGHT_API_TOKEN"
TEAM_TOKEN="YOUR_TESTFLIGHT_TEAM_TOKEN"
MEMBER_LISTS="YOUR_TESTFLIGHT_MEMBER_LIST_NAMES,OTHER_LIST_NAME,..."
CONFIGURATION="Release"
SCHEME_NAME=$(shell basename *.xcodeproj .xcodeproj)
all: archive
archive:
ipa build -s ${SCHEME_NAME} -c ${CONFIGURATION} -d "build"
testflight: archive
ipa distribute:testflight -f "build/${SCHEME_NAME}.ipa" -a ${API_TOKEN} -T ${TEAM_TOKEN} -l ${MEMBER_LISTS}
clean:
rm -f build/*.ipa build/*.app.dSYM.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment