From callback-dev-return-10191-apmail-incubator-callback-dev-archive=incubator.apache.org@incubator.apache.org Tue Jul 17 13:21:38 2012 Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 68529D8F2 for ; Tue, 17 Jul 2012 13:21:38 +0000 (UTC) Received: (qmail 87419 invoked by uid 500); 17 Jul 2012 13:21:38 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 87032 invoked by uid 500); 17 Jul 2012 13:21:36 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 86975 invoked by uid 99); 17 Jul 2012 13:21:34 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2012 13:21:34 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 98960140B94 for ; Tue, 17 Jul 2012 13:21:34 +0000 (UTC) Date: Tue, 17 Jul 2012 13:21:33 +0000 (UTC) From: "Andrew Grieve (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <382464574.63653.1342531294626.JavaMail.jiratomcat@issues-vm> In-Reply-To: <2132185938.9583.1334091920892.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-479) iOS Upgrade Guide: Add upgrade path for existing project(s) on how to replace "cordova.framework" by "cordova subproject" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416164#comment-13416164 ] Andrew Grieve commented on CB-479: ---------------------------------- The only thing that is required out of the sub-project is the CordovaLib static library. The www directory within the sub-project can be ignored. Probably we should create a separate xcode project file for the CordovaLibApp and CordovaLibTests so that this is less confusing (I'll try to get to this later today). The steps I took to convert an existing framework-based cordova project to the new format: 1. Delete the reference to cordova.framework from the navigator. This will also remove it from all targets. 2. Add the CordovaLib.xcodeproj as a sub-project (right-click on nav, "Add Files", select CordovaLib.xcodeproj) 3. Add CordovaLib to the "link with libraries" build phase of your app target 4. Add -all_load to OTHER_LDFLAGS of your target 5. Add CordovaLib's VERSION file to the main bundle's resources (I'm not sure if this will be required when using the release candidate) > iOS Upgrade Guide: Add upgrade path for existing project(s) on how to replace "cordova.framework" by "cordova subproject" > ------------------------------------------------------------------------------------------------------------------------- > > Key: CB-479 > URL: https://issues.apache.org/jira/browse/CB-479 > Project: Apache Cordova > Issue Type: Improvement > Components: Docs, iOS > Affects Versions: 1.6.0 > Environment: IOS XCODE MAC > Reporter: Emile khattar > Assignee: Shazron Abdullah > Priority: Minor > Fix For: 2.0.0 > > > If you already created a cordova .framework project using the cordova template in xcode and you would like to move into a subproject based solution a manual is needed to make it faster. > Tips from a personal experience: > - Unlink the cordova framework > - Un-install cordova framework to make sure the migration went well (then re-install) > - unset this variable "CORDOVA_FRAMEWORK=YES" from the build settings > - grep for "#ifdef CORDOVA_FRAMEWORK" in the plugins code to make sure that you are importing the files correctly. > - Empty the value of "framework search paths" in the build settings -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira