Skip to content

Instantly share code, notes, and snippets.

@tokorom
Created July 8, 2013 00:42
Show Gist options
  • Save tokorom/5945524 to your computer and use it in GitHub Desktop.
Save tokorom/5945524 to your computer and use it in GitHub Desktop.
Makefile for iOS
PROJECT = XXX.xcodeproj
TEST_TARGET = Tests
clean:
xcodebuild \
-project $(PROJECT) \
clean
test:
xcodebuild \
-project $(PROJECT) \
-target $(TEST_TARGET) \
-sdk iphonesimulator \
-configuration Debug \
TEST_AFTER_BUILD=YES
test-with-coverage:
xcodebuild \
-project $(PROJECT) \
-target $(TEST_TARGET) \
-sdk iphonesimulator \
-configuration Debug \
TEST_AFTER_BUILD=YES \
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES \
GCC_GENERATE_TEST_COVERAGE_FILES=YES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment