Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 069BD198E6 for ; Sat, 26 Mar 2016 17:04:26 +0000 (UTC) Received: (qmail 15319 invoked by uid 500); 26 Mar 2016 17:04:25 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 15297 invoked by uid 500); 26 Mar 2016 17:04:25 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 15286 invoked by uid 99); 26 Mar 2016 17:04:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Mar 2016 17:04:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 897A12C14F8 for ; Sat, 26 Mar 2016 17:04:25 +0000 (UTC) Date: Sat, 26 Mar 2016 17:04:25 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-10961) CLI 6.1.0 Error when adding ios platform and plugin declare in config.xml MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-10961?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D152131= 10#comment-15213110 ]=20 ASF GitHub Bot commented on CB-10961: ------------------------------------- Github user csantanapr commented on the pull request: https://github.com/apache/cordova-lib/pull/416#issuecomment-201893339 =20 @riknoll @vladimir-kotikov I found a way to skip prepare hooks on first= prepare call. made the change I rebase, please review again > CLI 6.1.0 Error when adding ios platform and plugin declare in config.xml > ------------------------------------------------------------------------- > > Key: CB-10961 > URL: https://issues.apache.org/jira/browse/CB-10961 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 6.1.0 > Reporter: Carlos Santana > Priority: Critical > Labels: cli, ios, regresion > > New CLI 6.1.0 has a regression when adding platform ios, not using HelloC= ordova name for the app and plugins are present or declare in config.xml > To reproduce there are multiple use cases: > 1. Create new app with name app1, add a plugin then add ios platform > 2, Create new app with a template with a plugin in config.xml and that sp= ecifies a name app1 in config.xml or create cli, then add ios platform > 3. Create new app with name app1 add a plugin declaration in config.xml g= lobally or under ios platform and then add ios platform > Initial investigation is that ios xcode project is always created with He= lloCordova and the name specified in config.xml > $ cordova create app1 com.app1 app1 > Creating a new cordova project. > ~/dev/cordova/cli-6.1.0 > =F0=9F=8D=94 $ cd app1/ > ~/dev/cordova/cli-6.1.0/app1 > =F0=9F=8D=94 $ cordova plugin add cordova-plugin-camera --save > Fetching plugin "cordova-plugin-camera" via npm > Saved plugin info for "cordova-plugin-camera" to config.xml > ~/dev/cordova/cli-6.1.0/app1 > =F0=9F=8D=94 $ cat config.xml > > > app1 > > A sample Apache Cordova application that responds to the devicere= ady event. > > > Apache Cordova Team > > > > > > > > > > > > > > > > > > > > ~/dev/cordova/cli-6.1.0/app1 > =F0=9F=8D=94 $ cordova platform add ios > Adding ios project... > iOS project created with cordova-ios@4.1.0 > Installing "cordova-plugin-camera" for ios > Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to= the project > Fetching plugin "cordova-plugin-whitelist@1" via npm > Installing "cordova-plugin-whitelist" for ios > Failed to install 'cordova-plugin-whitelist':Error: ENOENT: no such file = or directory, open '/Users/csantana23/Documents/dev/cordova/cli-6.1.0/app1/= platforms/ios/app1.xcodeproj/project.pbxproj' > at Error (native) > at Object.fs.openSync (fs.js:584:18) > at Object.fs.writeFileSync (fs.js:1224:33) > at Object.cachedProjectFiles.(anonymous function).write (/Users/csant= ana23/Documents/dev/cordova/cli-6.1.0/app1/platforms/ios/cordova/lib/projec= tFile.js:73:16) > at /Users/csantana23/Documents/dev/cordova/cli-6.1.0/app1/platforms/i= os/cordova/lib/plugman/Plugman.js:85:21 > at _fulfilled (/Users/csantana23/Documents/dev/cordova/cli-6.1.0/app1= /platforms/ios/cordova/node_modules/q/q.js:834:54) > at self.promiseDispatch.done (/Users/csantana23/Documents/dev/cordova= /cli-6.1.0/app1/platforms/ios/cordova/node_modules/q/q.js:863:30) > at Promise.promise.promiseDispatch (/Users/csantana23/Documents/dev/c= ordova/cli-6.1.0/app1/platforms/ios/cordova/node_modules/q/q.js:796:13) > at /Users/csantana23/Documents/dev/cordova/cli-6.1.0/app1/platforms/i= os/cordova/node_modules/q/q.js:857:14 > at runSingle (/Users/csantana23/Documents/dev/cordova/cli-6.1.0/app1/= platforms/ios/cordova/node_modules/q/q.js:137:13) > ~/dev/cordova/cli-6.1.0/app1 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org