apache / apache/cordova-cli

Edit-Config tag failing

Open
#442 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
967
Forks
344
Avg merge
8h 41m
Merged PRs (30d)
9

Description

It seems that the `edit-config` tag fails to find the plist property `LSApplicationQueriesSchemes`. It throws the error _**"Error: doc.find is not a function [ERROR] An error occurred while running cordova prepare ios (exit code 1)."**_ when I run `$cordova prepare ios.` If manually edit my plist file and add the below code, my apps functions fine and I can launch the external apps.

## Config.xml
```

fbapi

fbapi20130214

fbapi20130410

fbapi20130702

fbapi20131010

fbapi20131219

fbapi20140410

fbapi20140116

fbapi20150313

fbapi20150629

fbapi20160328

fbauth

fbauth2

fb-messenger-api20140430

fbapi

fb-messenger-share-api

fbauth2

fbshareextension

fb-messenger-platform-20150128

fb-messenger-platform-20150218

fb-messenger-platform-20150305

fb

twitter

linkedin

```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure with the shown Config.xml and `cordova prepare ios`, focusing on the `edit-config` handling for `*-Info.plist` and `LSApplicationQueriesSchemes`. Done means the command completes without the `doc.find is not a function` error and the requested plist entries are applied.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.