-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] No known instance method for selector 'shouldAutorotateToInterfaceOrientation:' #714
Comments
Did you test both master ( I believe this is a known issue that |
I test it in this versions: First test: Second test I think the problem from line:
Because I am using Xcode 11.5 Maybe the other users not testing in new versions of Xcode. |
Thanks @asgeo1 for pointing that out. |
You are right |
I just submitted a PR that should fix that again. Thank you for spotting the issue. Reviews are welcome |
Thank you |
I am having the same issue. Using the PR solves the error for me. :) |
I still have this issue on xCode 11.7 and plugin version 4.0.0 |
Same here. |
Whats is the solution now? |
Please use the latest versions of the plugin, cordova-ios and Xcode if possible. If you still got any issues please open a new issues with a complete error log. |
Bug Report
Problem
Xcode v11.5 show this error:
No known instance method for selector 'shouldAutorotateToInterfaceOrientation:'
What is expected to happen?
The error should not appear in Xcode.
What does actually happen?
When you try to build your code either from command line at macOS:
cordova build ios
The following build commands failed:
CompileC /var/root/Library/Developer/Xcode/DerivedData/myapp-fwtbwlotgipnwyfynxipdyoqnfgg/Build/Intermediates.noindex/myapp.build/Debug-iphonesimulator/testapp.build/Objects-normal/x86_64/CDVWKInAppBrowser.o /Users/mosab/Documents/myapp/platforms/ios/testapp/Plugins/cordova-plugin-inappbrowser/CDVWKInAppBrowser.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
xcodebuild: Command failed with exit code 65
--
And if you open your project in Xcode, you will see the following error message:
/Users/mosab/Documents/myapp/platforms/ios/testapp/Plugins/cordova-plugin-inappbrowser/CDVWKInAppBrowser.m:1250:42: No known instance method for selector 'shouldAutorotateToInterfaceOrientation:'
Information
Command or Code
cordova build ios
Environment, Platform, Device
iOS
Version information
cordova cli 9.0.0
cordova-ios 6.0.0
cordova-plugin-inappbrowser (master version) or 3.2.0
Xcode 11.5
macOS 10.15.5
Checklist
The text was updated successfully, but these errors were encountered: