aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile20
-rw-r--r--export-options.plist9
2 files changed, 29 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
+ "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>method</key>
+ <string>mac-application</string>
+</dict>
+</plist>