离子纯白屏

时间:2020-01-04 13:06:18

标签: ionic-framework ionic4

我的离子版本5.4.13
npm vzrsion 6.13.4
当我在ionic上创建任何项目并使用xcode运行它时,我只会得到白屏
这是控制台xcode

2020-01-04 13:59:31.567359+0100 MyApp[25489:1031204] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/mac/Library/Developer/CoreSimulator/Devices/C99122F9-F66A-46D2-BB1F-1B931038D84F/data/Containers/Data/Application/3B7A34CD-DFEC-40F9-B2F8-75CC5FE2CE72/Library/Cookies/io.ionic.starter.binarycookies
2020-01-04 13:59:31.581558+0100 MyApp[25489:1031204] Apache Cordova native platform version 4.1.1 is starting.
2020-01-04 13:59:31.581836+0100 MyApp[25489:1031204] Multi-tasking -> Device: YES, App: YES
2020-01-04 13:59:31.783256+0100 MyApp[25489:1031204] Using UIWebView
2020-01-04 13:59:31.785894+0100 MyApp[25489:1031204] [CDVTimer][handleopenurl] 0.056028ms
2020-01-04 13:59:31.787517+0100 MyApp[25489:1031204] [CDVTimer][intentandnavigationfilter] 1.485109ms
2020-01-04 13:59:31.787725+0100 MyApp[25489:1031204] [CDVTimer][gesturehandler] 0.052929ms
2020-01-04 13:59:31.789739+0100 MyApp[25489:1031204] [CDVTimer][statusbar] 1.898050ms
2020-01-04 13:59:31.810114+0100 MyApp[25489:1031204] [CDVTimer][splashscreen] 20.256996ms
2020-01-04 13:59:31.810423+0100 MyApp[25489:1031204] CDVIonicKeyboard: resize mode 1
2020-01-04 13:59:31.811171+0100 MyApp[25489:1031204] CDVIonicKeyboard: WARNING!!: Keyboard plugin works better with WK
2020-01-04 13:59:31.811356+0100 MyApp[25489:1031204] [CDVTimer][cdvionickeyboard] 1.055956ms
2020-01-04 13:59:31.811448+0100 MyApp[25489:1031204] [CDVTimer][TotalPluginStartup] 25.646091ms
2020-01-04 13:59:31.909499+0100 MyApp[25489:1031204] Resetting plugins due to page load.
2020-01-04 13:59:32.000722+0100 MyApp[25489:1031357] NSURLConnection finished with error - code -1100
2020-01-04 13:59:32.002922+0100 MyApp[25489:1031362] NSURLConnection finished with error - code -1100
2020-01-04 13:59:32.003133+0100 MyApp[25489:1031362] NSURLConnection finished with error - code -1100
2020-01-04 13:59:32.003537+0100 MyApp[25489:1031362] NSURLConnection finished with error - code -1100
2020-01-04 13:59:32.003923+0100 MyApp[25489:1031362] NSURLConnection finished with error - code -1100
2020-01-04 13:59:32.004358+0100 MyApp[25489:1031357] NSURLConnection finished with error - code -1100
2020-01-04 13:59:32.004694+0100 MyApp[25489:1031360] NSURLConnection finished with error - code -1100
2020-01-04 13:59:32.005076+0100 MyApp[25489:1031383] NSURLConnection finished with error - code -1100
2020-01-04 13:59:32.011372+0100 MyApp[25489:1031204] Finished load of: file:///Users/mac/Library/Developer/CoreSimulator/Devices/C99122F9-F66A-46D2-BB1F-1B931038D84F/data/Containers/Bundle/Application/D060F060-3FEE-4620-A25D-D1864B979649/MyApp.app/www/index.html

1 个答案:

答案 0 :(得分:0)

您的日志中似乎有一些错误。

通常是因为您没有使用https网址。

但是,如果您的应用正在加载,则应该使用远程调试功能找出失败原因:

https://ionicframework.com/docs/building/ios#debugging-ios-apps

一旦应用程序在iOS设备或模拟器上运行,就可以在Safari中对其进行调试。

使用Safari Web检查器

Safari对iOS模拟器和设备具有Web Inspector支持。打开“开发”菜单并选择模拟器或设备,然后选择“ Ionic App”以打开Web Inspector。

如果隐藏了“开发”菜单,请在Safari»首选项»高级»在菜单栏中显示“开发”菜单。