forked from sahin/mobileplayer-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (20 loc) · 811 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
BUILD_TOOL = xctool
BUILD_PLATFORM = iphonesimulator
BUILD_DESTINATION_NAME = iPhone 6
BUILD_ARGUMENTS = -workspace MobilePlayer.xcworkspace -scheme MobilePlayer -derivedDataPath build -sdk $(BUILD_PLATFORM) -destination 'platform=$(BUILD_PLATFORM),name=$(BUILD_DESTINATION_NAME)'
PACKAGE_IDENTIFIER = com.movielala.MobilePlayer
default: test
install:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update && brew upgrade
brew install xctool
build:
$(BUILD_TOOL) $(BUILD_ARGUMENTS)
test:
$(BUILD_TOOL) $(BUILD_ARGUMENTS) test
run:
xcrun instruments -w '$(BUILD_DESTINATION_NAME)'
xcrun simctl install booted build/Debug-iphonesimulator/MobilePlayer.app
xcrun simctl launch booted $(PACKAGE_IDENTIFIER)
clean:
$(BUILD_TOOL) $(BUILD_ARGUMENTS) clean