cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Bell (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12070) edit-config doesn't work with plist files
Date Mon, 13 Nov 2017 15:33:00 GMT

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

Tom Bell commented on CB-12070:
-------------------------------

[~jcesarmobile] I'm currently using 7.1.0, it worked prior to updating the contacts plugin,
as I added the `<edit-config>` before I updated the plugin (I went from 2.3.1 to 3.0.0
of the cordova-plugin-contacts).

> edit-config doesn't work with plist files
> -----------------------------------------
>
>                 Key: CB-12070
>                 URL: https://issues.apache.org/jira/browse/CB-12070
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-lib
>            Reporter: Darryl Pogue
>             Fix For: cordova-lib@6.4.1
>
>
> Trying to use the {{edit-config}} tag in config.xml to add to the iOS Info.plist file:
> {code}<edit-config file="*-Info.plist" target="LSApplicationQueriesSchemes" mode="merge">
>     <array>
>         <string>foo</string>
>     </array>
> </edit-config>{code}
> It's giving me an error in xml_helpers.js:
> {code}Error: TypeError: doc.find is not a function
>     at Object.resolveParent (/Users/dpogue/Coding/cordova-app/node_modules/cordova-common/src/util/xml-helpers.js:210:26)
>     at /Users/dpogue/Coding/cordova-app/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:464:53
>     at Array.forEach (native)
>     at is_conflicting (/Users/dpogue/Coding/cordova-app/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:456:17)
>     at PlatformMunger.add_config_changes (/Users/dpogue/Coding/cordova-app/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:204:33)
>     at /Users/dpogue/Coding/cordova-app/node_modules/cordova-lib/src/cordova/prepare.js:127:24
>     at _fulfilled (/Users/dpogue/Coding/cordova-app/platforms/ios/cordova/node_modules/q/q.js:834:54)
>     at self.promiseDispatch.done (/Users/dpogue/Coding/cordova-app/platforms/ios/cordova/node_modules/q/q.js:863:30)
>     at Promise.promise.promiseDispatch (/Users/dpogue/Coding/cordova-app/platforms/ios/cordova/node_modules/q/q.js:796:13)
>     at /Users/dpogue/Coding/cordova-app/platforms/ios/cordova/node_modules/q/q.js:604:44{code}
> This seems to happen because plist files are turned into JS objects when they are parsed,
rather than XML documents like AndroidManifest.xml or config.xml.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message