-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Future proof the simulator id selection.
- Loading branch information
Will James
committed
Mar 28, 2017
1 parent
e8d8a36
commit 8f5a4de
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
SIMULATOR_ID=$(xcrun instruments -s devices | grep -m1 "iPhone 7 (10.2)" | sed -E 's/.*\[(.*)\].*/\1/') | ||
xcodebuild -scheme "GuardedSwiftyJson" -destination "platform=iOS Simulator,id=$SIMULATOR_ID" test |