ios上启动屏幕后,cordova上的白屏会反应应用程序

时间:2020-02-06 11:31:41

标签: ios reactjs cordova

我在cordova中使一个应用程序做出反应,mobx并为Android和iOS开发。在Android设备上可以正常运行,但是当我尝试在iOS设备/模拟器上测试我的应用时,该应用在启动屏幕后卡在了白色屏幕上。

Xcode控制台上的消息

2020-02-06 12:09:44.881900+0100 MyApp[881:234060] Apache Cordova native platform version 5.1.0 is starting.

2020-02-06 12:09:44.882479+0100 MyApp[881:234060] Multi-tasking -> Device: YES, App: YES

2020-02-06 12:09:44.886449+0100 MyApp[881:234060] 


Started backup to iCloud! Please be careful.

Your application might be rejected by Apple if you store too much data.

For more information please read "iOS Data Storage Guidelines" at:

https://developer.apple.com/icloud/documentation/data-storage/

To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file

2020-02-06 12:09:44.935388+0100 MyApp[881:234060] Using UIWebView

2020-02-06 12:09:44.936711+0100 MyApp[881:234060] [CDVTimer][console] 0.036955ms

2020-02-06 12:09:44.936801+0100 MyApp[881:234060] [CDVTimer][handleopenurl] 0.044942ms

2020-02-06 12:09:44.937794+0100 MyApp[881:234060] Unlimited access to network resources

2020-02-06 12:09:44.937852+0100 MyApp[881:234060] [CDVTimer][intentandnavigationfilter] 1.019001ms

2020-02-06 12:09:44.937921+0100 MyApp[881:234060] [CDVTimer][gesturehandler] 0.041008ms

2020-02-06 12:09:45.009893+0100 MyApp[881:234060] [CDVTimer][file] 71.922064ms

2020-02-06 12:09:45.010969+0100 MyApp[881:234060] [CDVTimer][diagnostic] 0.991940ms

2020-02-06 12:09:45.012559+0100 MyApp[881:234060] [CDVTimer][diagnostic_location] 1.545072ms

2020-02-06 12:09:45.013857+0100 MyApp[881:234060] [CDVTimer][diagnostic_bluetooth] 1.183033ms

2020-02-06 12:09:45.013934+0100 MyApp[881:234060] [CDVTimer][diagnostic_wifi] 0.038981ms

2020-02-06 12:09:45.014006+0100 MyApp[881:234060] [CDVTimer][diagnostic_camera] 0.038981ms

2020-02-06 12:09:45.014066+0100 MyApp[881:234060] [CDVTimer][diagnostic_notifications] 0.029922ms

2020-02-06 12:09:45.014391+0100 MyApp[881:234060] [CDVTimer][diagnostic_microphone] 0.295043ms

2020-02-06 12:09:45.016117+0100 MyApp[881:234060] [CDVTimer][diagnostic_contacts] 1.678944ms

2020-02-06 12:09:45.016211+0100 MyApp[881:234060] [CDVTimer][diagnostic_calendar] 0.041008ms

2020-02-06 12:09:45.016270+0100 MyApp[881:234060] [CDVTimer][diagnostic_reminders] 0.027061ms

2020-02-06 12:09:45.016852+0100 MyApp[881:234060] [CDVTimer][diagnostic_motion] 0.550032ms

2020-02-06 12:09:45.022192+0100 MyApp[881:234060] [CDVTimer][splashscreen] 5.296946ms

2020-02-06 12:09:45.022309+0100 MyApp[881:234060] [CDVTimer][socialsharing] 0.064969ms

2020-02-06 12:09:45.023422+0100 MyApp[881:234060] [CDVTimer][universallinks] 1.076937ms

initializeAWSMobileClient

**Logged In**

Cognito Identity Id (authenticated): nil)

2020-02-06 12:09:45.034093+0100 MyApp[881:234060] [CDVTimer][authplugin] 10.622978ms

2020-02-06 12:09:45.034139+0100 MyApp[881:234060] [CDVTimer][TotalPluginStartup] 97.496033ms

2020-02-06 12:09:45.072544+0100 MyApp[881:234322] Metal API Validation Enabled

2020-02-06 12:09:46.484979+0100 MyApp[881:234060] Resetting plugins due to page load.

2020-02-06 12:09:46.497449+0100 MyApp[881:234060] Failed to load webpage with error: The operation couldn’t be completed. (NSURLErrorDomain error -999.)

2020-02-06 12:09:46.498708+0100 MyApp[881:234060] Resetting plugins due to page load.

2020-02-06 12:09:49.494526+0100 MyApp[881:234328] CoreAnimation: [EAGLContext renderbufferStorage:fromDrawable:] was called from a non-main thread in an implicit transaction! Note that this may be unsafe without an explicit CATransaction or a call to [CATransaction flush].

2020-02-06 12:09:49.812301+0100 MyApp[881:234060] Finished load of: file:///var/containers/Bundle/Application/EF7AA56E-E5EA-4A21-B169-7DA86E63A3DA/MyApp.app/www/index.html

我搜索了两天并尝试:

  • 在config.xml文件中添加<allow-navigation href="*"/><allow-navigation href="*://localhost/*"/>
  • ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES到$(inherited)
  • 将前一个添加到搜索路径中
  • 一些无效的命令

我感到沮丧,因为我一直坚持这个问题,而且不知道如何解决。

如果您需要其他信息,请告诉我。

Cordova插件

  • cordova-plugin-add-swift-support 2.0.2“ AddSwiftSupport”
  • cordova-plugin-call-number 1.0.1“科尔多瓦电话号码插件”
  • cordova-plugin-cocoapod-support 1.6.2“ Cordova CocoaPods依赖关系支持”
  • cordova-plugin-deeplinks 1.1.1“ Cordova Deeplinks插件”
  • cordova-plugin-device 2.0.3“设备”
  • cordova-plugin-dialogs 2.0.2“通知”
  • cordova-plugin-exit 1.0.3“退出”
  • cordova-plugin-file 6.0.2“文件”
  • cordova-plugin-geolocation 4.0.2“地理位置”
  • cordova-plugin-network-information 2.0.2“网络信息”
  • cordova-plugin-request-location-accuracy 2.3.0“请求位置准确性”
  • cordova-plugin-screen-orientation 3.0.2“屏幕方向”
  • cordova-plugin-splashscreen 5.0.3“启动画面”
  • cordova-plugin-whitelist 1.3.4“白名单”
  • cordova-plugin-x-socialsharing 5.4.7“社交共享”
  • cordova.plugins.diagnostic 4.0.12“诊断”
  • es6-promise-plugin 4.2.2“ Promise”

0 个答案:

没有答案