Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.
This repository was archived by the owner on Oct 1, 2018. It is now read-only.

How to make cordova build to use chcpbuild.options ? #83

@guv3n

Description

@guv3n

Question here
I followed step by step, but can't make cordova build to use options

  • Created chcpbuild.options file in root directory of cordova project
{
  "dev": {
    "config-file": "http://devurl.com/chcp.json"
  },
  "production": {
    "config-file": "https://productionurl.com/chcp.json"
  }
}
  • Config.xml has
<chcp>
    <config-file url="http://defaultfromxml.com/" />
</chcp>

When I run cordova build -- chcp-dev I get this :

CHCP Local Development Add-on:
    Local development mode for CHCP plugin is disabled. Doing nothing.
Swift support activation hook:
    IOS project now has deployment target set to: 7.0
    IOS project option EMBEDDED_CONTENT_CONTAINS_SWIFT set as: YES
    IOS project Runpath Search Paths set to: @executable_path/Frameworks
CHCP plugin after prepare hook:
    config-file set to http://defaultfromxml.com/
Running command: /Users/Guven/Work/clm-cordova/platforms/ios/cordova/build chcp-dev

And the platform version of config.xml has <config-file url="http://defaultfromxml.com/" />

Am I missing something ?
Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions