Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11B1D1810A for ; Fri, 2 Oct 2015 19:05:14 +0000 (UTC) Received: (qmail 84902 invoked by uid 500); 2 Oct 2015 19:05:10 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 84867 invoked by uid 500); 2 Oct 2015 19:05:10 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 84855 invoked by uid 99); 2 Oct 2015 19:05:10 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Oct 2015 19:05:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id E25F2C0429 for ; Fri, 2 Oct 2015 19:05:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.101 X-Spam-Level: X-Spam-Status: No, score=-0.101 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tqqfOiicHsOc for ; Fri, 2 Oct 2015 19:05:04 +0000 (UTC) Received: from mail-qg0-f44.google.com (mail-qg0-f44.google.com [209.85.192.44]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id B6870203BB for ; Fri, 2 Oct 2015 19:05:03 +0000 (UTC) Received: by qgez77 with SMTP id z77so102969726qge.1 for ; Fri, 02 Oct 2015 12:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=c5cICU0j+QHq3Tpom2k+JRJo5/tnj9uPaa57c0uh+K8=; b=FUs7uXcLpG62QCOi3/2SCrH0c/3HmYXneSMY+hAuI6ExmgpAGnGbRr3URLsyj2ngUa f0grRu4otLd9MVVfOLIqGAsTGR+gtKWPs7+xCtKCDnY/uFQhA0mqez++O3bPXeETllds EjZPeeL+gGCMWAEw4QK6hdP6LNFJg6tMOq/U1MwXk6wVZZmxQOU6J5SPTk3XjrHiVfGP cngBYXLWuvlW5hib3AJpiWcTcxkeKY8bfqmp39gR6O5ruv763e8U9ryaLn39CqMYcxCi 7E9Uq+oOahGZHGLzv/oXsvYdmLdBcLfA9ZY+lZikGl187XLrI+EM8w7bNGjoacBw2daQ VNnA== X-Received: by 10.140.85.147 with SMTP id n19mr22336419qgd.56.1443812702722; Fri, 02 Oct 2015 12:05:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.55.60.4 with HTTP; Fri, 2 Oct 2015 12:04:23 -0700 (PDT) In-Reply-To: <249664a9c0ed45069f945a7b28c69573@SINPR30MB0057.064d.mgd.msft.net> References: <249664a9c0ed45069f945a7b28c69573@SINPR30MB0057.064d.mgd.msft.net> From: Shazron Date: Fri, 2 Oct 2015 12:04:23 -0700 Message-ID: Subject: Re: Question about ios non-custom frameworks To: "dev@cordova.apache.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable +1 On Fri, Oct 2, 2015 at 8:14 AM, Vladimir Kotikov (Akvelon) wrote: > The previous email was broken due to Ctrl+Enter, sorry =E2=98=B9 > > I=E2=80=99m looking into the tests failures on OS X, caused by PlatformAp= i refactoring and it seems they caused by double caching of ios pbxproj fil= es: first time in ios_parser [1] and second time in PlatformMunger (through= ConfigKeeper class) [2], [3]. It seems that at some time one file get cach= ed twice and then saving one cached instance we=E2=80=99re overwriting chan= ges, saved from another cache. > > So I have a question: What is the idea of dealing with xcode files and, i= n particular , with non-custom frameworks in PlatformMunger instead of ios = plugin handler, along with custom frameworks. The one reason I see is that = we need to count references to these frameworks, so if two or more plugins = references same frameworks, removal of one of them won=E2=80=99t remove fra= mework reference from pbxproj file. > > However, if this this is the only reason, would it make sense to move non= -custom frameworks related logic to plugin handler? This will resolve thos= e caching issues and looks more intuitive and easier to maintain for me. > > I=E2=80=99ve made some prototype work on this refactoring and it seems to= work fine. See this commit for details: [4] > > ----- > [1] https://github.com/MSOpenTech/cordova-lib/blob/master/cordova-lib/src= /plugman/platforms/ios.js#L210 > [2] https://github.com/MSOpenTech/cordova-lib/blob/master/cordova-common/= src/ConfigChanges/ConfigChanges.js#L91 > [3] https://github.com/MSOpenTech/cordova-lib/blob/master/cordova-common/= src/ConfigChanges/ConfigKeeper.js#L47 > > [4] https://github.com/MSOpenTech/cordova-lib/commit/699bfe44a917b264815d= c99efa0d770b766fa3a9 > > - > Best regards, Vladimir > > From: Vladimir Kotikov (Akvelon) > Sent: Friday, October 2, 2015 6:04 PM > To: dev@cordova.apache.org > Subject: Question about ios non-custom frameworks > > Hi, guys. I=E2=80=99m looking into the tests failures on OS X, caused by = PlatformApi refactoring and it seems they caused by double caching of ios p= bxproj files: first time in ios_parser [1] and second time in PlatformMunge= r (through ConfigFile class) [2], [3]. It seems that at some time one file = get cached twice and then saving one cached instance we=E2=80=99re overwrit= ing changes, saved from another cache. > > [1] https://github.com/MSOpenTech/cordova-lib/blob/master/cordova-lib/src= /plugman/platforms/ios.js#L210 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org