Open maximus123123 opened 4 years ago
I created a new pod TwitterKit5, migrated from UIWebView to WKWebView. Hope that will help.
pod 'TwitterKit5'
@touren Thank you for your work. But it's crashing.
After investigating in the DemoApp. The first time it will use SFSafariViewController
and everything goes right. When any session is stored, it will use WKWebView
instead. My project will crash here.
- (UIViewController *)webController
{
if (_useWebFlow) {
// My project goes crash when WKWebView being used
return [self webViewController];
} else {
// No crash here
[self.navigationController setNavigationBarHidden:YES];
return [self safariViewController];
}
}
I've created https://github.com/touren/twitter-kit-ios/pull/2 for you, so DemoApp is able to run.
If anyone got crashing and is in a hurry. The workaround is to change _useWebFlow
to NO
, it will force SFSafariViewController
to be used every time to prevent the crash. Since UIWebView
is not referenced in the code it should be able to submit to the App Store.
Don't know why TwitterKit uses two different ways for non-app auth. Please correct me if anything is wrong.
@HackingGate Thanks for your solution. Could you please share the steps you did to crash the DemoApp?
Hi @touren Here's the steps to reproduce.
@HackingGate Thanks for your instructions. I published TwitterKit5 v5.0.2, fixed the crash.
pod 'TwitterKit5'
This package uses UIWebView, Is there a way of removing just that section?
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.