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

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

Closed
guv3n opened this issue Jan 11, 2016 · 3 comments
Closed

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

guv3n opened this issue Jan 11, 2016 · 3 comments
Labels
Milestone

Comments

@guv3n
Copy link

guv3n commented Jan 11, 2016

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

@nikDemyankov
Copy link
Member

No, you are not. Probably a bug, will look into that.

@nikDemyankov
Copy link
Member

Found it, thanks. Probably will fix it today in the evening.

nikDemyankov added a commit that referenced this issue Jan 11, 2016
Fixed Cordova 5.4 warnings.
@nikDemyankov nikDemyankov added this to the v1.2.3 milestone Jan 11, 2016
@nikDemyankov nikDemyankov mentioned this issue Jan 11, 2016
@nikDemyankov
Copy link
Member

Published v1.2.3 with the fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants