You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by Apache Wiki <wi...@apache.org> on 2012/08/15 23:11:38 UTC

[Cordova Wiki] Update of "Modifying/Debugging iOS CordovaLib" by ShazronAbdullah

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cordova Wiki" for change notification.

The "Modifying/Debugging iOS CordovaLib" page has been changed by ShazronAbdullah:
http://wiki.apache.org/cordova/Modifying/Debugging%20iOS%20CordovaLib?action=diff&rev1=3&rev2=4

  = Modifying / Debugging iOS CordovaLib =
  
+ == 2.0.0 and greater ==
+ 
+  * Close Xcode if it is running. 
+  * Download Cordova for iOS.
+  * In Terminal.app, run '''make''' in the source folder you downloaded
+  * Create a new project using the [[http://docs.phonegap.com/en/edge/guide_command-line_index.md.html#Command-Line%20Usage_ios | command line utilities in the bin folder]]
+  * Navigate to your newly created project directory and open projectName.xcodeproj
+  * You should see !CordovaLib as a sub-project of your application project.  You can build and run this as you normally would and can set breakpoints within the !CordovaLib classes. Note that only one project using !CordovaLib as an embedded project can be run in Xcode at one time.  
+ 
+ If you are working from a different directory than the source folder you downloaded you can modify the CORDOVALIB variable in the project build settings (!CordovaBuildSettings.xcconfig) for your project and the !CordovaLib project or modify it globally in Xcode Preferences Location Source Trees to point to your !CordovaLib directory. 
+ 
+ 
+ == 1.9.0 and below ==
+ 
- Quick instructions for creating an xcode project to debug the iOS CordovaLib. Valid as of 1.7.
+ Quick instructions for creating an xcode project to debug the iOS CordovaLib.
  
   * Close Xcode if it is running. 
   * Download and install Cordova for iOS.  This will create a $(HOME)/Documents/CordovaLib directory on your machine.
@@ -11, +25 @@

     {{{./create_project.sh projectName projectDirctory}}} 
  
   * Navigate to the project directory and open projectName.xcodeproj
-  * You should see CordovaLib as a sub-project of your application project.  You can build and run this as you normally would and can set breakpoints within the CordovaLib classes. Note that only one project using CordovaLib as an embedded project can be run in Xcode at one time.  
+  * You should see !CordovaLib as a sub-project of your application project.  You can build and run this as you normally would and can set breakpoints within the !CordovaLib classes. Note that only one project using !CordovaLib as an embedded project can be run in Xcode at one time.  
  
- If you are working from a different directory than $(HOME)/Documents/CordovaLib you can modify the CORDOVALIB variable in the project build settings for your project and the CordovaLib project or modify it globally in Xcode Preferences Location Source Trees to point to your CordovaLib directory. 
+ If you are working from a different directory than the source folder you downloaded you can modify the CORDOVALIB variable in the project build settings (!CordovaBuildSettings.xcconfig) for your project and the !CordovaLib project or modify it globally in Xcode Preferences Location Source Trees to point to your !CordovaLib directory.