Repository: cordova-ios Updated Branches: refs/heads/master b53d21ac4 -> 21f2749c5
Remove non-working applescript to start emulator, use Instruments to start iOS Simulator now. Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/21f2749c Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/21f2749c Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/21f2749c Branch: refs/heads/master Commit: 21f2749c56794b4d33724c14cba89eba1b1d8031 Parents: b53d21a Author: Shazron Abdullah <shaz...@apache.org> Authored: Fri Oct 17 16:36:05 2014 -0700 Committer: Shazron Abdullah <shaz...@apache.org> Committed: Fri Oct 17 16:36:05 2014 -0700 ---------------------------------------------------------------------- .../scripts/cordova/lib/sim.applescript | 31 -------------------- .../scripts/cordova/lib/start-emulator | 7 +++-- 2 files changed, 4 insertions(+), 34 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/21f2749c/bin/templates/scripts/cordova/lib/sim.applescript ---------------------------------------------------------------------- diff --git a/bin/templates/scripts/cordova/lib/sim.applescript b/bin/templates/scripts/cordova/lib/sim.applescript deleted file mode 100755 index 8425625..0000000 --- a/bin/templates/scripts/cordova/lib/sim.applescript +++ /dev/null @@ -1,31 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -tell application "System Events" - set UI elements enabled to true -end tell - -tell application "iPhone Simulator" - activate -end tell - -tell application "System Events" - tell process "iPhone Simulator" - click menu item "$DEVICE_NAME" of menu 1 of menu item "Device" of menu 1 of menu bar item "Hardware" of menu bar 1 - click menu item "Home" of menu 1 of menu bar item "Hardware" of menu bar 1 - end tell -end tell http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/21f2749c/bin/templates/scripts/cordova/lib/start-emulator ---------------------------------------------------------------------- diff --git a/bin/templates/scripts/cordova/lib/start-emulator b/bin/templates/scripts/cordova/lib/start-emulator index 7e6885f..c300bb3 100755 --- a/bin/templates/scripts/cordova/lib/start-emulator +++ b/bin/templates/scripts/cordova/lib/start-emulator @@ -17,13 +17,14 @@ # specific language governing permissions and limitations # under the License. # +# Run the below to get the device targets: +# xcrun instruments -s set -e -DEFAULT_TARGET="iPhone Retina (3.5-inch)" +DEFAULT_TARGET="iPhone 5s" TARGET=${1:-$DEFAULT_TARGET} LIB_PATH=$( cd "$( dirname "$0" )" && pwd -P) -SCPT=`sed -e "s/\\$DEVICE_NAME/$TARGET/g" "$LIB_PATH/sim.applescript"` -osascript -e "$SCPT" +xcrun instruments -w "$TARGET" \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org