Make run-ios accept the simulator name

Signed-off-by: Igor Mandrigin <i@mandrigin.ru>
This commit is contained in:
Igor Mandrigin 2018-06-06 16:47:28 +03:00
parent 089717c5e3
commit 125f61b19e
No known key found for this signature in database
GPG Key ID: 4A0EDDE26E66BC8B
1 changed files with 5 additions and 0 deletions

View File

@ -111,8 +111,13 @@ repl-android: ##@repl Start REPL for Android
run-android: ##@run Run Android build run-android: ##@run Run Android build
react-native run-android --appIdSuffix debug react-native run-android --appIdSuffix debug
SIMULATOR = ""
run-ios: ##@run Run iOS build run-ios: ##@run Run iOS build
ifneq ("$(SIMULATOR)", "")
react-native run-ios --simulator="$(SIMULATOR)"
else
react-native run-ios react-native run-ios
endif
#-------------- #--------------
# Tests # Tests