Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS10.3.1 - <Cordova/CDVViewController.h> file not found - After Upgrade

I was running an ionic app successfully, but when i upgraded to iOS10.3.1 and Xcode 8.3.1 then whenever i create a new project and build it i get the error

<Cordova/CDVViewController.h> file not found

How to fix this. How to downgrade to lower versions.

Cordova CLI: 6.5.0 
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
iOS : 4.3.1
like image 651
Sourav Das Avatar asked Nov 28 '25 06:11

Sourav Das


2 Answers

in Xcode 8.3.2 this solved by running:

ionic resources
ionic platform remove ios
ionic platform add ios

src: https://forum.ionicframework.com/t/cdvviewcontroller-h-file-not-found/89548

like image 126
alacret Avatar answered Nov 30 '25 23:11

alacret


The other solution didn't work for me. Running this did:

cordova plugin remove cordova-plugin-console

The cordova-plugin-console functionality has been moved to the core in cordova-ios 5.5.0, and including it is now a redundancy.

like image 42
user3413723 Avatar answered Nov 30 '25 23:11

user3413723