You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/03/16 19:14:49 UTC

[21/29] ios commit: updating subproject cordovalib steps

updating subproject cordovalib steps


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/9c52b482
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/tree/9c52b482
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/diff/9c52b482

Branch: refs/heads/master
Commit: 9c52b482ee2c018c22c0cc1a8e4ef35b308622c8
Parents: 74c9787
Author: Fil Maj <ma...@gmail.com>
Authored: Fri Mar 9 14:55:27 2012 -0800
Committer: Fil Maj <ma...@gmail.com>
Committed: Fri Mar 16 10:56:49 2012 -0700

----------------------------------------------------------------------
 guides/How to Use Cordova as a Component.md |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/blob/9c52b482/guides/How to Use Cordova as a Component.md
----------------------------------------------------------------------
diff --git a/guides/How to Use Cordova as a Component.md b/guides/How to Use Cordova as a Component.md
index c18d4b4..cb8087f 100644
--- a/guides/How to Use Cordova as a Component.md	
+++ b/guides/How to Use Cordova as a Component.md	
@@ -54,7 +54,7 @@ It is recommended that you follow the Cordova.framework instructions below, the
 13. Add **"$(CORDOVALIB)/Classes"** and check the **Recursive** checkbox - for the **"Header Search Paths"** value
 14. Add **"-all_load"** and **"-Obj-C"** - for the **"Other Linker Flags"** value
 15. Click on the **project icon** in the Project Navigator, select your **Target**, then select the **"Build Phases"** tab
-16. Expand **"Link Binaries with Libraries"**
+16. Expand **"Link Binaries with Libraries"** 
 17. Click on the **"+" button**, and add these **frameworks** (and optionally in the Project Navigator, **move** them under the Frameworks group):
 
         AddressBook.framework
@@ -67,11 +67,27 @@ It is recommended that you follow the Cordova.framework instructions below, the
         SystemConfiguration.framework
         MobileCoreServices.framework
         CoreMedia.framework
-18. Expand **"Target Dependencies"**
+18. Expand **"Target Dependencies"** - the top box labeled like this if
+    you have multiple boxes!
 19. Click on the **"+" button**, and add the **"CordovaLib"** build product
-20. Expand **"Link Binaries with Libraries"**
+20. Expand **"Link Binaries with Libraries"** - the top box labeled like
+    this if you have multiple boxes!
 21. Click on the **"+" button**, and add **libCordova.a** 
 
+### Adding new classes to CordovaLib sub-project ###
+
+In general if you are only modifying or debugging existing CordovaLib
+classes you should be OK with just the above steps. However if you are
+adding new classes you need to follow a few additional steps:
+
+1. In your project's Frameworks directory in Xcode, remove
+   "Cordova.framework".
+2. Just to reiterate step 18 and 20 above: make sure your dependencies
+   and libraries are in the top-most boxes under Build Phases for your
+   project's Target.
+3. In your project's Target's Build Settings, search for "Other Linker
+   Flags". Add "-Obj-C" and "-all_load" to this.
+
 ## Using CDVViewController in your code ##
 
 1. Add this **header** if you used the **Cordova.framework**: