cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject ios commit: [CB-3031] Fix for emulate script when project name has a space
Date Wed, 29 May 2013 19:37:32 GMT
Updated Branches:
  refs/heads/master 6caaa6267 -> dad34250d


[CB-3031] Fix for emulate script when project name has a space


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/dad34250
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/dad34250
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/dad34250

Branch: refs/heads/master
Commit: dad34250dc56283e65e7ef14c4d2e5d7217a233e
Parents: 6caaa62
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Wed May 29 15:37:05 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Wed May 29 15:37:05 2013 -0400

----------------------------------------------------------------------
 bin/templates/project/cordova/emulate |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/dad34250/bin/templates/project/cordova/emulate
----------------------------------------------------------------------
diff --git a/bin/templates/project/cordova/emulate b/bin/templates/project/cordova/emulate
index 9a3c3c4..b0ab99b 100755
--- a/bin/templates/project/cordova/emulate
+++ b/bin/templates/project/cordova/emulate
@@ -26,12 +26,15 @@ if [[ "$XCODE_VER" < "$XCODE_MIN_VERSION" ]]; then
 	exit 1
 fi
 
+SDK=`xcodebuild -showsdks | grep Sim | tail -1 | awk '{print $6}'`
+
 CORDOVA_PATH=$( cd "$( dirname "$0" )" && pwd -P)
 PROJECT_PATH="$(dirname "$CORDOVA_PATH")"
 XCODEPROJ=$( ls "$PROJECT_PATH" | grep .xcodeproj  )
 PROJECT_NAME=$(basename "$XCODEPROJ" .xcodeproj)
 
-APP_PATH=${1:-$PROJECT_PATH/build/$PROJECT_NAME.app}
+APP_PATH=${1:-$PROJECT_PATH/build/$(xcodebuild -project $PROJECT_NAME.xcodeproj -arch i386
-target $PROJECT_NAME -configuration Debug -sdk $SDK -showBuildSettings | grep FULL_PRODUCT_NAME
| awk -F ' = ' '{print $2}')}
+
 DEVICE_FAMILY=${2:-${DEVICE_FAMILY:-iphone}}
 
 if [ ! -d "$APP_PATH" ]; then


Mime
View raw message