Sourav Das
Sourav Das

Reputation: 1008

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

Upvotes: 3

Views: 5806

Answers (3)

Sahaj Arora
Sahaj Arora

Reputation: 11

I had the same problem but only when Archiving. I researched a lot but none of the solutions worked. I did not want to remove the platform and add it again. The only thing that worked for me is this:

  1. Clean you project
  2. Build your project
  3. Archive your project. The Archive should now be successful.

Upvotes: 1

user3413723
user3413723

Reputation: 12263

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.

Upvotes: 1

alacret
alacret

Reputation: 639

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

Upvotes: 5

Related Questions