Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

edit-config for ios usage descriptions: doc.find is not a function

Tags:

ios

cordova

When using the edit-config tag in config.xml, I get this error on build:

Error: doc.find is not a function 

Any ideas?

like image 494
Benjamin E. Avatar asked Nov 21 '17 03:11

Benjamin E.


1 Answers

I think that the error has thrown when the platforms/ios/ios.json file is conflicting to the config.xml.

To resolve this issue, remove *-Info.plist key and its value in platforms/ios/ios.json and do cordova prepare ios again.

--- adding 17/May/2020 ---

If some plugins has config-file tag for *-Info.plist and config.xml has edit-config tag for *-Info.plist, this error may happen. In this case, remove platforms/* and plugins/*, and then cordova platform add ios and cordova prepare again. (If you do cordova prepare without cordova platform add ios, this error may happen)

like image 172
KNaito Avatar answered Oct 03 '22 10:10

KNaito