Skip to content

Instantly share code, notes, and snippets.

@shazron
Last active December 25, 2015 18:09
Show Gist options
  • Save shazron/7018944 to your computer and use it in GitHub Desktop.
Save shazron/7018944 to your computer and use it in GitHub Desktop.
Patch Cordova 3.1.0 for CB-5103 (https://issues.apache.org/jira/browse/CB-5103)
  1. Make sure you have run this at least once in a created project to get the cordova-ios library:

     cordova platform add ios
  2. Run these commands to back up and patch the existing run script:

     cp -f ~/.cordova/lib/ios/cordova/3.1.0/bin/templates/scripts/cordova/run  ~/.cordova/lib/ios/cordova/3.1.0/bin/templates/scripts/cordova/run.orig
     curl https://raw.github.com/csantanapr/cordova-ios/fb5428d01b1469a783959ac5b251cf27d340102a/bin/templates/scripts/cordova/run > ~/.cordova/lib/ios/cordova/3.1.0/bin/templates/scripts/cordova/run

Now, when you create a new project, it will contain the updated script. If you want to just replace the existing script in an already created project, just replace the platforms/ios/cordova/run file with the ~/.cordova/lib/ios/cordova/3.1.0/bin/templates/scripts/cordova/run file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment