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 ++++++++++++++++++++ export-options.plist | 9 +++++++++ 2 files changed, 29 insertions(+) create mode 100644 Makefile create mode 100644 export-options.plist 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 diff --git a/export-options.plist b/export-options.plist new file mode 100644 index 0000000..98e54bb --- /dev/null +++ b/export-options.plist @@ -0,0 +1,9 @@ + + + + + method + mac-application + + -- cgit v1.2.3