cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anibal Sanchez (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-13564) Multiple edit-config items for Info.plist causing error
Date Fri, 06 Jul 2018 18:43:00 GMT

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

Anibal Sanchez commented on CB-13564:
-------------------------------------

Same issue here, and it is not resolved. Please, also check CB-12070.

Trying to use cordova-plugin-appavailability plugin.

 
{{<edit-config target="LSApplicationQueriesSchemes" file="*-Info.plist" mode="merge">}}
{{  <array>}}
{{    <string>fb</string>}}
{{    <string>twitter</string>}}
{{  </array>}}
{{</edit-config>}}
 
macOS 10.13.5
Xcode 9.4.1
Cordova 8.0.0
Cordova iOS 4.5.4
 
{{(node:9134) UnhandledPromiseRejectionWarning: TypeError: doc.find is not a function}}
{{ at Object.resolveParent (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/util/xml-helpers.js:207:26)}}
{{ at /usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:347:53}}
{{ at Array.forEach (<anonymous>)}}
{{ at is_conflicting (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:339:17)}}
{{ at PlatformMunger.add_config_changes (/usr/local/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:190:33)}}
{{ }}
 

> Multiple edit-config items for Info.plist causing error
> -------------------------------------------------------
>
>                 Key: CB-13564
>                 URL: https://issues.apache.org/jira/browse/CB-13564
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli
>    Affects Versions: 7.1.0
>            Reporter: Tom Bell
>            Priority: Major
>
> I've updated `cordova-ios` to 4.5.3 and `cordova-plugin-contacts` to 3.0.0, I've got
the following 
> working:
> {code:xml}
> <edit-config file="*-Info.plist" mode="merge" target="NSContactsUsageDescription">
>     <string>We require permission to access your contacts so you can import contacts
into [redacted]</string>
> </edit-config>
> {code}
> However when I decided to move some stuff from an `after_prepare` hook script, to use
edit-config, it fails with an error `doc.find is not a function`
> {code:xml}
> <edit-config file="*-Info.plist" mode="merge" target="NSContactsUsageDescription">
>     <string>We require permission to access your contacts so you can import contacts
into [redacted]</string>
> </edit-config>
> <edit-config file="*-Info.plist" mode="merge" target="UIStatusBarStyle">
>     <string>UIStatusBarStyleLightContent</string>
> </edit-config>
> {code}
> If I take out the additional `<edit-config>` everything works.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message