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 10F8DCC40 for ; Fri, 17 Aug 2012 20:09:39 +0000 (UTC) Received: (qmail 99056 invoked by uid 500); 17 Aug 2012 20:09:38 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 99035 invoked by uid 500); 17 Aug 2012 20:09:38 -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 99023 invoked by uid 99); 17 Aug 2012 20:09:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 20:09:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 1D3532C5BE5 for ; Fri, 17 Aug 2012 20:09:38 +0000 (UTC) Date: Sat, 18 Aug 2012 07:09:38 +1100 (NCT) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <719113594.25065.1345234178120.JavaMail.jiratomcat@arcas> In-Reply-To: <548747082.46164.1336594429240.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-675) Allow multiple versions of PhoneGap to be installed in Xcode 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-675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437029#comment-13437029 ] Shazron Abdullah commented on CB-675: ------------------------------------- Personally, I believe doing a regex is harder to maintain ;) I believe we can just convert the .pbxproj to xml (plist format xml - using plutil: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/plutil.1.html), then perhaps using xpath to replace values. {code} plutil -convert xml1 -o - myproject.xcodeproj/project.pbxproj {code} Then, we either convert it back to the json format using plutil (not sure if it's possible, probably we can, I'll have to experiment) or just leave it be, since Xcode can read this format anyway, then it converts it back to the json format after. > Allow multiple versions of PhoneGap to be installed in Xcode > ------------------------------------------------------------ > > Key: CB-675 > URL: https://issues.apache.org/jira/browse/CB-675 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Reporter: Andrew Trice > Assignee: Shazron Abdullah > Fix For: 2.1.0 > > Attachments: project_template.diff.png > > > There is one thing that is driving me crazy with PhoneGap. Currently in OSX, the Xcode project always references the machine's PhoneGap library. For a single project, this is fine. If you have multiple projects on your machine, and they use different versions of the PhoneGap SDK, then there is no way to easily manage the correct version of the SDK. Whether your project is PhoneGap 1.5 or 1.7, it will reference the last installed SDK. If you try and run a PhoneGap 1.5 app on a machine where you last installed the 1.7 RC, then the 1.5 app is likely to have errors (compiler errors from changes in the SDK, as well as JS errors). It would be great to have either versioned SDK libraries so that you can have multiple PhoneGap versions installed at the same time, or have a reference to the PhoneGap library in each project, so that installing a new SDK doesn't break older projects. -- 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