ionic4项目运行在苹果ios10.2、10.3版本上报以下错误:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[WKWebViewConfiguration setURLSchemeHandler:forURLScheme:]: unrecognized selector sent to instance 0x1741a7fc0' ***
First throw call stack
:......
libc++abi.dylib: terminating with uncaught exception of type NSException
具体原因找到一篇相关的文章iOS 11 WKWebView新特性。
处理方法将cordova-plugin-ionic-webview插件降低版本,改为2.3.1。