Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Cordova/CDVUIWebViewDelegate.h' file not found

I just update cordova to version 10.0.0 and mi xcode is on version 11.3.1 now when I try to build my app I'm getting this error.

'Cordova/CDVUIWebViewDelegate.h' file not found

I don't know how to set the path to this file or fix this error. Could anyone please help me?

Thanks in advance.

like image 243
César Augusto Camelo Vivas Avatar asked Dec 05 '20 17:12

César Augusto Camelo Vivas


People also ask

What is external data directory in Cordova?

cordova.file.dataDirectory - Persistent and private data storage within the application's sandbox using internal memory (on Android, if you need to use external memory, use .externalDataDirectory ). On iOS, this directory is not synced with iCloud (use .syncedDataDirectory ). ( iOS, Android, BlackBerry 10, windows)

What is cache directory in Cordova?

cordova.file.cacheDirectory - Directory for cached data files or any files that your app can re-create easily. The OS may delete these files when the device runs low on storage, nevertheless, apps should not rely on the OS to delete files in here. ( iOS, Android, BlackBerry 10, OSX, windows)

Why is my Cordova file being deleted by the OS?

The OS may delete these files when the device runs low on storage, nevertheless, apps should not rely on the OS to delete files in here. ( iOS, Android, BlackBerry 10, OSX, windows) cordova.file.externalApplicationStorageDirectory - Application space on external storage. ( Android)

Where is the application storage directory in Cordova?

cordova.file.applicationStorageDirectory - Root directory of the application's sandbox; on iOS & windows this location is read-only (but specific subdirectories [like /Documents on iOS or /localState on windows] are read-write). All data contained within is private to the app. ( iOS, Android, BlackBerry 10, OSX)


Video Answer


1 Answers

Try this in console inside folder with your project:

rm -rf platforms plugins package-lock.json node_modules
npm install
cordova prepare

I had linking problems in Xcode and fix it only by this way (sick!). Someones recommends this way:

npm install -g cordova
cordova platform remove ios
cordova platform add ios
like image 135
Konstantin Avatar answered Nov 15 '22 05:11

Konstantin