![]() ![]() This is the directory where the Xcode project and files for the application will be located. There are 3 ordered, required parameters for creating a Cordova project from the command line: This will open up a default terminal window with the path set to the bin directory. Drag this directory to the open Terminal icon in the dock.Note: This screen capture was from the Cordova-2.3.0 download, your listing will vary based on the actual Cordova version installed. In Finder, navigate to the cordova-ios directory from the downloaded and extracted Cordova code and expand it if necessary. Locate the Terminal app and double click to open it. In Finder, navigate to the Applications Folder. You can use a different directory name or location if you wish but you will need to remember this directory location and name for subsequent steps. ![]() In Finder navigate to the Documents Directory.Ĭreate a directory called CordovaXY within the Documents directory where the X and Y represent the Cordova version number (23, for example). For this tutorial I created a CordovaXY directory under my Documents folder: ~/Documents/CordovaXY where the X and Y refer the to Cordova version #. Determine Project Locationĭetermine where on your system you will locate the Xcode project files for your application. The following steps explain how to create the necessary directory structure, open and use the Terminal application to create a new project, and execute the create script. Xcode projects for Cordova are created by invoking a script file via the command line. The code for iOS is within the cordova-ios directory structure. This will create a directory named, cordova-X.Y.Z.Įxpand this folder and locate the cordova-ios.zip file and double click to extract it. Using the Finder® app, double click the file to extract. The file name will be different if you are using an updated or newer version of Cordova. Note: The file names change with each new version of Cordova. ![]() Navigate to the folder where you downloaded the code. To access the code it will need to be extracted from the archive (.zip) file. The download includes the code for all of the Apache Cordova supported platforms. The X, Y and Z represent the version number of Cordova, for example 2.5.0. Click on the Download icon and select cordova-X.Y.Z-src.zip to download to your machine. This Getting Started guide documents deploying the application to the iOS simulator so registration with the developer program is not required.ĭownload the latest version of Apache Cordova from. In addition, to install apps onto a device, you must be a member of the iOS Developer Program from Apple. Devices that support at least iOS 5 include all iPad® models, iPhone® 3GS and above, and iPod® Touch 3rd Generation or later. The device must have at least iOS 5.x installed - this is the minimum iOS version supported as of Cordova 2.3. You can test many of the Cordova features using the iOS simulator that is installed with the iOS SDK and Xcode, but you will need an actual device to fully test all of the device features used in your applications before submitting to the App Store. This will download and install copies of the core command line tools and system headers into system folders on your computer. Select the following via the Xcode Menus: Xcode Preferences> Downloads>Command Line Tools.The tools are downloaded from within Xcode. To access the Xcode tools from the command line an additional download is required. Note: This link requires Apple Developer registration.Ĭordova uses the command line to create a new application project. Download from Apple Developer Downloads ().The download of Xcode 4.5.2 includes the iOS 6 SDK. Currently the latest versions are Xcode 4.5.2 and the iOS 6 SDK (Software Development Kit). To submit apps to the Apple App Store℠, you must be using the latest versions of the Apple tools. The version of the development environment required, Xcode® 4.5, runs only on Mac OS X version 10.7 (Lion) or greater. The Apple® tools required for building iOS applications run only on the OS X operating system. ![]() Intel-based Computer with Mac® OS X® Lion or greater (10.7.4+).This document describes how to get started using Apache Cordova for the iOS platform. Cordova provides a standard set of JavaScript APIs to access device features on all supported platforms. The application is created using HTML, CSS and JavaScript and compiled for each specific platform using the platform native tools. Apache Cordova is a library used to create native mobile applications using Web technologies. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |