OSX

Generally speaking, you need a Mac computer to build Mac applications.

To build OSX apps for Mac:

cordova platform add osx

Then on [project]\platforms\osx\cordova, run:


npm install shelljs

to install the dependencies required to build the application.

On the Mac, download Xcode from the App Store. From Xcode, open the workspace file: [project]/platforms/osx/my-app.xcworkspacePress the Run button in the same toolbar. That builds, deploys, and runs the application in the simulator.

To obtain the executable file, click the Project Navigator at the left panel, open the Products folder, click the file MyApp.app, then in the menu above follow File > Show in Finder to open its folder in Finder. You can copy the MyApp.app standalone executable file anywhere else on your Mac.

Alternatively, if built on a Mac, the executable file MyApp.app can be found in the folder platforms/osx/build/.