From ce6854f2de7d6301a4b9937159536cc855ce8818 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Mon, 8 Oct 2018 18:19:39 +0200 Subject: Add Makefile to build and archive the application Thanks to these resources, in addition to the `xcodebuild` man page, for explaining how to do the archiving: - http://subathrathanabalan.com/2016/01/07/building-ipa-export-archive/ - https://medium.com/xcblog/xcodebuild-deploy-ios-app-from-command-line-c6defff0d8b8 - https://bitbar.com/tipstricks-how-to-archive-and-export-ipa-from-script/ --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..087c282 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +release: + xcodebuild -scheme 'Word Count' -configuration Release + +clean-release: + xcodebuild -project 'Word Count.xcodeproj' \ + -configuration Release \ + clean + +archive: clean-release release + xcodebuild -project 'Word Count.xcodeproj' \ + -scheme 'Word Count' \ + -configuration Release \ + archive \ + -archivePath build/Release.xcarchive + + xcodebuild \ + -exportArchive \ + -archivePath build/Release.xcarchive \ + -exportOptionsPlist export-options.plist \ + -exportPath build -- cgit v1.2.3