Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova iOs error

I’m using platform Cordova to create iOs, Android and Windows App. I tried to learn all about Cordova, and I consider myself very good using the tool.

After I upgrade xCode 6.4 to 7 I got a issue. The problem happens when I try to build my iOs App in the terminal. I got an error in this error create some extra conflicts, see again the build:

// ERROR AppDelegate.m:138:1: warning: conflicting return type in implementation of 'application:supportedInterfaceOrientationsForWindow:': 'UIInterfaceOrientationMask' (aka 'enum UIInterfaceOrientationMask') vs 'NSUInteger' (aka 'unsigned int') [-Wmismatched-return-types] // ERROR

I've been looking at many forums and still can not find solution. Can somebody help me to fix this problem?

like image 783
Carlos Galeano Avatar asked Nov 09 '22 04:11

Carlos Galeano


1 Answers

Don't feel bad. Whenever Xcode and iOS are updated, all sorts of stuff breaks for experienced and inexperienced people alike. I would try updating everything related to building Cordova apps: cordova, ios-sim, ios-deploy, etc.

Be sure to perform the updates and make a backup first, but sometimes removing and re-adding a platform will resolve random issues also. Try:

cordova platform rm ios
cordova platform add ios
like image 95
Josh Buchea Avatar answered Nov 14 '22 22:11

Josh Buchea