Skip to content

Commit

Permalink
Merge remote-tracking branch 'alexfmpe/fix-ios-simulator' into ios-fi…
Browse files Browse the repository at this point in the history
…xes-for-19-09

Fixes #527
  • Loading branch information
matthewbauer committed Dec 2, 2019
2 parents 707408b + e6a9607 commit cb81498
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions ios/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,7 @@ nixpkgs.runCommand "${executableName}-app" (rec {
cp -LR "$(dirname $0)/../${executableName}.app" $tmpdir
chmod +w "$tmpdir/${executableName}.app"
mkdir -p "$tmpdir/${executableName}.app/config"
cp "$1" "$tmpdir/${executableName}.app/config/route"
# focus????
focus/reflex-platform/scripts/run-in-ios-sim "$tmpdir/${executableName}.app"
(cd "$(dirname $0)/../../scripts" && ./run-in-ios-sim "$tmpdir/${executableName}.app")
'';
}) ''
set -x
Expand Down
3 changes: 2 additions & 1 deletion scripts/run-todomvc-in-ios-sim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
set -euo pipefail

function cleanup {
if [ -n "$uuid" ]; then
# alternative to [ -v ] for bash prior to 4.2
if [ -n "${uuid-}" ]; then
echo "Cleaning up simulator" >&2
xcrun simctl shutdown $uuid 2>/dev/null
xcrun simctl delete $uuid
Expand Down

0 comments on commit cb81498

Please sign in to comment.