CordovaLib is a framework that enables users to include Cordova in their OS X application projects easily, and also create new Cordova based OS X application projects.
Make sure you have installed the latest released OS X SDK which comes with Xcode 5. Download it at http://developer.apple.com/downloads or the Mac App Store.
-
Get a patched version of cordova CLI and Plugman
- checkout the master. see https://github.com/apache/cordova-cli#installing-from-master
- patch the 2 projects with the patches provided in the
patches
directory to enable the osx platform
-
Follow the instructions in the Command-Line Usage section of the Cordova Docs
-
add the osx platform:
$ cordova platform add osx $ cordova run osx
You can also open the project in XCode:
$ open platforms/osx/<yourproject>.xcodeproj
-
Download the source
-
execute the
create
command to setup an empty project:$ bin/create <path_to_new_project> <package_name> <project_name>
for example
$ bin/create ../Foo org.apache.foo FooBar
To use a shared CordovaLib, add as the first parameter "--shared" to the bin/create command.
When you update to a new Cordova version, you may need to update the CordovaLib reference in an existing project. Cordova comes with a script that will help you to do this.
- Launch Terminal.app
- Go to the location where you installed Cordova, in the bin sub-folder
- Run "update_cordova_subproject [path/to/your/project/xcodeproj]" where the first parameter is the path to your project's .xcodeproj file
None yet.
File them at the Cordova Issue Tracker