WuglyakBolgoink opened a new issue #156:
URL: https://github.com/apache/cordova-common/issues/156


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   cordova prepare should be finished successful
   
   
   ### What does actually happen?
   
   ios prepare finished with 
   doc.find is not a function
   
   
   ```
   doc.find is not a function
   TypeError: doc.find is not a function
       at Object.resolveParent 
(/Users/.../.npm-global/lib/node_modules/cordova/node_modules/cordova-common/src/util/xml-helpers.js:131:51)
   ```
   
   the problem is on this code block 
   
![image](https://user-images.githubusercontent.com/2271337/107623858-44ad5a00-6c5a-11eb-8daa-3c0c7a26a179.png)
   
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   The `/cordova_v10_staging/platforms/ios/ios.json` file contain only two 
permission descriptions in `config_munge.files.*-Info.plist` section:
   
   
![image](https://user-images.githubusercontent.com/2271337/107623398-8db0de80-6c59-11eb-9931-9cdd7d736962.png)
   
   should contain all permissions
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   I use simple bash script for cleaning, install and upgrade plugins and 
platforms. In this case I just use clean function
   
   ```bash
   function clean_cordova_project_folder() {
       cd "$1" || exit
   
       echo "clean_cordova_project_folder -> $1"
   
      #  rm -rf node_modules
       rm -rf platforms
       rm -rf plugins
       rm -rf ul_web_hooks
       rm -rf package-lock.json
   
       npm install
   
       cordova prepare --verbose --debug
   
       cd ..
   }
   
   
   APP_FOLDER_STAGE="<yout_cordova_project_folder>" 
   # 1. clean folders and install packages
   clean_cordova_project_folder "$APP_FOLDER_STAGE"
   ```
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   - macos Catalina (10.15.7 (19H512))
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   - [email protected]
   - [email protected]
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to