You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/02/22 00:30:18 UTC

[jira] [Commented] (CB-10659) fail to add platform ios after a plugin is added first

    [ https://issues.apache.org/jira/browse/CB-10659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15156291#comment-15156291 ] 

ASF GitHub Bot commented on CB-10659:
-------------------------------------

GitHub user bso-intel opened a pull request:

    https://github.com/apache/cordova-ios/pull/195

    CB-10659 changed project name to fix the platform add failure

    The project name "Hello Cordova" does not match with template project "HelloCordova", and it causes failure when finding the <project_name>.xcodeproj file as a part of installing plugin files.
    By matching the project names with the template, platform add worked fine.
    
    After the fix is applied, the platforms/ios directory contains the following files:
    ```
    [ios] ls
    CordovaLib             cordova                www
    HelloCordova           ios.json
    HelloCordova.xcodeproj platform_www
    ```
    The platform add ios worked fine now.
    ```
    [t6.0.1] cordova platform add ~/cordova/bso-cordova-ios
    Adding ios project...
    iOS project created with cordova-ios@4.1.0-dev
    Installing "cordova-plugin-device" 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
    ```

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/bso-intel/cordova-ios CB-10659

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-ios/pull/195.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #195
    
----
commit be3e2ea6ab69f890469e142f68457da056336cbb
Author: Byoungro So <by...@intel.com>
Date:   2016-02-21T23:18:25Z

    CB-10659 changed project name to fix the platform add failure

----


> fail to add platform ios after a plugin is added first
> ------------------------------------------------------
>
>                 Key: CB-10659
>                 URL: https://issues.apache.org/jira/browse/CB-10659
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Byoungro So
>            Assignee: Byoungro So
>
> Adding platform ios failed when a plugin is already added into the project first.
> Here is how to reproduce the issue.
> {code}
> [test] cordova create t6.0.1
> Creating a new cordova project.
> [test] cd t6.0.1
> [[t6.0.1] cordova plugin add cordova-plugin-device
> Fetching plugin "cordova-plugin-device@~1.1.1" via npm
> [t6.0.1] cordova platform add ios
> Adding ios project...
> iOS project created with cordova-ios@4.0.1
> Installing "cordova-plugin-device" 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 '/Users/bso/cordova/test/t6.0.1/platforms/ios/HelloCordova.xcodeproj/project.pbxproj'
>     at Error (native)
>     at Object.fs.openSync (fs.js:500:18)
>     at Object.fs.writeFileSync (fs.js:1099:15)
>     at Object.cachedProjectFiles.(anonymous function).write (/Users/bso/cordova/test/t6.0.1/platforms/ios/cordova/lib/projectFile.js:73:16)
>     at /Users/bso/cordova/test/t6.0.1/platforms/ios/cordova/lib/plugman/Plugman.js:85:21
>     at _fulfilled (/Users/bso/cordova/test/t6.0.1/platforms/ios/cordova/node_modules/cordova-common/node_modules/q/q.js:834:54)
>     at self.promiseDispatch.done (/Users/bso/cordova/test/t6.0.1/platforms/ios/cordova/node_modules/cordova-common/node_modules/q/q.js:863:30)
>     at Promise.promise.promiseDispatch (/Users/bso/cordova/test/t6.0.1/platforms/ios/cordova/node_modules/cordova-common/node_modules/q/q.js:796:13)
>     at /Users/bso/cordova/test/t6.0.1/platforms/ios/cordova/node_modules/cordova-common/node_modules/q/q.js:857:14
>     at runSingle (/Users/bso/cordova/test/t6.0.1/platforms/ios/cordova/node_modules/cordova-common/node_modules/q/q.js:137:13)
> {code}



--
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