我在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
我搜索了两天并尝试:
<allow-navigation href="*"/>
和<allow-navigation href="*://localhost/*"/>
$(inherited)
我感到沮丧,因为我一直坚持这个问题,而且不知道如何解决。
如果您需要其他信息,请告诉我。
Cordova插件