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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With