Created
August 17, 2013 15:04
-
-
Save taktamur/6257327 to your computer and use it in GitHub Desktop.
iOSアプリをビルドしてTestFlightに送り込むMakefile ref: http://qiita.com/paming/items/98929336dea4560a34fc
This file contains hidden or 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
| # http://hakobe932.hatenablog.com/entry/2012/01/21/142726#fn1 | |
| .PHONY: all build archive testflight | |
| PROJECT ?= PAMEventBoard.xcworkspace | |
| SCHEME ?= PAMEventBoard | |
| SIGN ?= iOS Developer | |
| DSYM = $(PWD)/out/build/PAMEventBoard.app.dSYM | |
| all: archive | |
| out: | |
| mkdir -p $@ | |
| build: out | |
| xcodebuild -workspace '$(PROJECT)' -scheme '$(SCHEME)' -sdk iphoneos7.0 install DSTROOT=out CONFIGURATION_BUILD_DIR\ | |
| =$(PWD)/out/build | |
| archive: build | |
| xcrun -sdk iphoneos7.0 PackageApplication 'out/Applications/$(SCHEME).app' -o '$(PWD)/out/$(SCHEME).ipa' | |
| zip-dsym: build | |
| zip -r $(PWD)/out/$(SCHEME).dSYM.zip $(DSYM) | |
| testflight: archive zip-dsym | |
| curl 'http://testflightapp.com/api/builds.json' \ | |
| -F 'file=@$(PWD)/out/$(SCHEME).ipa' \ | |
| -F 'dsym=@$(PWD)/out/$(SCHEME).dSYM.zip' \ | |
| -F 'api_token=<YOUR API TOKEN>' \ | |
| -F 'team_token=<YOUR TERM TOKEN>' \ | |
| -F 'notes=This build was uploaded via the upload API' \ | |
| -v | |
| clean: | |
| rm -rf ./out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment