Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-4025

iOS emulate command broken when run inside the cordova folder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 3.0.0
    • cordova-ios
    • None
    • OSX

    Description

      the emulate script in the project/cordova is broken.

      line 35 currently reads
      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}')}

      Fix is simple change this line to this
      APP_PATH=${1:-$PROJECT_PATH/build/$(xcodebuild -project $PROJECT_PATH/$PROJECT_NAME.xcodeproj -arch i386 -target $PROJECT_NAME -configuration Debug -sdk $SDK -showBuildSettings | grep FULL_PRODUCT_NAME | awk -F ' = ' '{print $2}

      ')}

      emulate is not able to find the xcode project without the path.

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            rawss Ross Gerbasi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: