微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ionic V1 + cordova iOS 6.1.1 =>无法在iOS 13和iOS 14上启动

如何解决Ionic V1 + cordova iOS 6.1.1 =>无法在iOS 13和iOS 14上启动

在将cordova iOS升级到适用于iOS 14的6.1.1之后,我遇到了问题。 我升级到cordova iOS 6.1.1的原因是,ionic v1应用程序无法在iOS 14上运行,它在启动屏幕后卡住,与以下问题相同。 参考一些在线建议,我决定升级到cordova ios 6.1.1,但是存在相同的问题。

cordova-plugin-ionic-webview插件与ionic v1兼容吗?

问题

  • iOS 13和iOS14无法正常启动,在启动画面关闭后卡住了。
  • iOS 11和iOS 12正常运行。
  • 我可以在启动屏幕后看到登录页面,但是所有脚本都无法运行,在那里该页面只能加载带有条件语句的纯HTML而不是angularjs模板。
  • 我可以记录来自app.js的消息,但是无法记录登录页面中的任何消息,即使是从控制器的第一行到输入代码块也是如此。怀疑控制器根本没有加载。
  • 我可以从.run()和$ ionicPlatform.ready()的app.js中记录消息,相信那些工作正常。

Xcode输出

2020-09-20 14:53:34.862815+0800 app[53030:547374] Apache Cordova native platform version 6.1.1 is starting.
2020-09-20 14:53:34.863130+0800 app[53030:547374] Multi-tasking -> Device: YES,App: YES
2020-09-20 14:53:34.942898+0800 app[53030:547374] CDVWKWebViewEngine: trying to inject XHR polyfill
2020-09-20 14:53:34.946901+0800 app[53030:547374] The preference key "KeyboardResize" is not defined and will default to "TRUE"
2020-09-20 14:53:34.947196+0800 app[53030:547374] The preference key "AutoInjectCordova" is not defined and will default to "FALSE"
2020-09-20 14:53:34.947337+0800 app[53030:547374] The preference key "AudioCanMix" is not defined and will default to "FALSE"
2020-09-20 14:53:35.025983+0800 app[53030:547374] iOS 12.2+ detected
2020-09-20 14:53:35.029652+0800 app[53030:547374] The preference key "mediaplaybackAllowsAirPlay" is not defined and will default to "TRUE"
2020-09-20 14:53:35.380089+0800 app[53030:547374] The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE"
2020-09-20 14:53:35.380340+0800 app[53030:547374] The preference key "AllowLinkPreview" is not defined and will default to "FALSE"
2020-09-20 14:53:35.381041+0800 app[53030:547374] The preference key "AllowBackForwardNavigationGestures" is not defined and will default to "FALSE"
2020-09-20 14:53:35.381421+0800 app[53030:547374] CDVWKWebViewEngine will reload WKWebView if required on resume
2020-09-20 14:53:35.381579+0800 app[53030:547374] Using Ionic WKWebView
2020-09-20 14:53:35.382382+0800 app[53030:547374] [CDVTimer][console] 0.086069ms
2020-09-20 14:53:35.382985+0800 app[53030:547374] [CDVTimer][handleopenurl] 0.331998ms
2020-09-20 14:53:35.387454+0800 app[53030:547374] Unlimited access to network resources
2020-09-20 14:53:35.387744+0800 app[53030:547374] [CDVTimer][intentandnavigationfilter] 4.454017ms
2020-09-20 14:53:35.388039+0800 app[53030:547374] [CDVTimer][gesturehandler] 0.108957ms
2020-09-20 14:53:35.445945+0800 app[53030:547374] [CDVTimer][file] 57.747960ms
2020-09-20 14:53:35.446420+0800 app[53030:547374] [CDVTimer][inappbrowser] 0.309944ms
2020-09-20 14:53:35.450018+0800 app[53030:547374] [CDVTimer][statusbar] 3.412008ms
2020-09-20 14:53:35.451136+0800 app[53030:547374] [CDVTimer][socialsharing] 0.921011ms
2020-09-20 14:53:35.451828+0800 app[53030:547374] [CDVTimer][diagnostic] 0.452995ms
2020-09-20 14:53:35.455389+0800 app[53030:547374] [CDVTimer][diagnostic_location] 3.412962ms
2020-09-20 14:53:35.455668+0800 app[53030:547374] [CDVTimer][diagnostic_bluetooth] 0.082016ms
2020-09-20 14:53:35.455882+0800 app[53030:547374] [CDVTimer][diagnostic_wifi] 0.082016ms
2020-09-20 14:53:35.456120+0800 app[53030:547374] [CDVTimer][diagnostic_camera] 0.109076ms
2020-09-20 14:53:35.456682+0800 app[53030:547374] [CDVTimer][diagnostic_notifications] 0.438094ms
2020-09-20 14:53:35.457163+0800 app[53030:547374] [CDVTimer][diagnostic_microphone] 0.331044ms
2020-09-20 14:53:35.511730+0800 app[53030:547374] [CDVTimer][diagnostic_contacts] 54.377913ms
2020-09-20 14:53:35.512087+0800 app[53030:547374] [CDVTimer][diagnostic_calendar] 0.138998ms
2020-09-20 14:53:35.512401+0800 app[53030:547374] [CDVTimer][diagnostic_reminders] 0.126004ms
2020-09-20 14:53:35.520518+0800 app[53030:547374] [CDVTimer][diagnostic_motion] 7.962108ms
2020-09-20 14:53:35.524078+0800 app[53030:547374] [CDVTimer][cdvwkwebviewfilexhr] 3.373027ms
2020-09-20 14:53:35.524721+0800 app[53030:547374] The preference key "KeyboardResize" is not defined and will default to "TRUE"
2020-09-20 14:53:35.524883+0800 app[53030:547374] CDVIonicKeyboard: resize mode 1
2020-09-20 14:53:35.525000+0800 app[53030:547374] The preference key "HideKeyboardFormAccessoryBar" is not defined and will default to "TRUE"
2020-09-20 14:53:35.525616+0800 app[53030:547374] The preference key "KeyboardAppearanceDark" is not defined and will default to "FALSE"
2020-09-20 14:53:35.526125+0800 app[53030:547374] [CDVTimer][cdvionickeyboard] 1.863956ms
2020-09-20 14:53:35.526329+0800 app[53030:547374] [CDVTimer][TotalPluginStartup] 144.106984ms
2020-09-20 14:53:35.731944+0800 app[53030:547374] WF: === Starting WebFilter logging for process app
2020-09-20 14:53:35.732372+0800 app[53030:547374] WF: _userSettingsForUser : (null)
2020-09-20 14:53:35.732649+0800 app[53030:547374] WF: _WebFilterIsActive returning: NO
2020-09-20 14:53:36.556823+0800 app[53030:547374] IAB.close() called but it was already closed.
2020-09-20 14:53:37.615554+0800 app[53030:547374] The preference key "AutoHideSplashScreen" is not defined and will default to "TRUE"
2020-09-20 14:53:37.644414+0800 app[53030:547374] ### ready ###
2020-09-20 14:53:37.645705+0800 app[53030:547374] ## finish ## test

环境 离子性:

离子CLI:6.11.8(/.../.nvm/versions/node/v12.16.1/lib/node_modules/@ionic/cli) 离子框架:ionic1 1.3.4 @ ionic / v1-toolkit:1.0.22

科尔多瓦:

Cordova CLI:10.0.0 Cordova平台:iOS 6.1.1 Cordova插件

@globules-io/cordova-plugin-ios-xhr 1.0.8 "Cordova WKWebView File XHR Plugin"
cordova-android-support-gradle-release 3.0.1 "cordova-android-support-gradle-release"
cordova-clipboard 1.3.0 "Clipboard"
cordova-custom-config 5.1.0 "cordova-custom-config"
cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-device-name 1.3.5 "Device-Name"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-image-picker 1.1.1 "ImagePicker"
cordova-plugin-inappbrowser 4.0.0 "InAppbrowser"
cordova-plugin-insomnia 4.3.0 "Insomnia (prevent screen sleep)"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-is-debug 1.0.0 "IsDebug"
cordova-plugin-mediapicker-dmcsdk 2.4.7 "MediaPicker"
cordova-plugin-network-information 2.0.2 "Network information"
cordova-plugin-qrscanner 3.0.1 "QRScanner"
cordova-plugin-splashscreen 6.0.0 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-x-socialsharing 5.6.8 "SocialSharing"
cordova-plugin-x-toast 2.7.2 "Toast"
cordova.plugins.diagnostic 5.0.2 "Diagnostic"
es6-promise-plugin 4.2.2 "Promise"

实用程序:

cordova-res:0.15.1 本机运行:1.1.0

系统:

ios部署:1.10.0 ios-sim:8.0.2 NodeJS:v12.16.1(/.../.nvm/versions/node/v12.16.1/bin/node) npm:6.14.8 操作系统:macOS Catalina Xcode:Xcode 12.0 Build 12A7209

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。