Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/112.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ios白色屏幕上的Cordova混合应用程序_Ios_Cordova - Fatal编程技术网

ios白色屏幕上的Cordova混合应用程序

ios白色屏幕上的Cordova混合应用程序,ios,cordova,Ios,Cordova,如果在ios模拟器上使用cordova Simulate ios启动应用程序时出现白色屏幕,并且您已经尝试了以下操作,您会怎么做: 在选择ios应用程序-->后打开Safari中的控制台登录,它不会显示任何内容,因为在应用程序启动之前您无法连接,这意味着您无法查看任何启动日志。。。(据我所知) 仔细查看了ios模拟器的系统日志,但没有发现任何线索。有很多错误,但不确定哪一个是正确的,如果有的话?我会把日志复制粘贴到这里 下载Ripple并尝试在其上运行应用程序。ripple模拟器上的一切都很好。

如果在ios模拟器上使用
cordova Simulate ios
启动应用程序时出现白色屏幕,并且您已经尝试了以下操作,您会怎么做:

  • 在选择ios应用程序-->后打开Safari中的控制台登录,它不会显示任何内容,因为在应用程序启动之前您无法连接,这意味着您无法查看任何启动日志。。。(据我所知)

  • 仔细查看了ios模拟器的系统日志,但没有发现任何线索。有很多错误,但不确定哪一个是正确的,如果有的话?我会把日志复制粘贴到这里

  • 下载Ripple并尝试在其上运行应用程序。ripple模拟器上的一切都很好。该应用程序似乎可以在浏览器和ripple上运行,但在ios模拟器上是白色屏幕

  • ios模拟器日志:

    Apr 26 22:31:03 JayPrimes-MacBook-Pro syslogd[4128] <Notice>: --- syslogd restarted ---
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Warning>: <CAWindowServerDisplay:0x54684d0 TVOut 0x0>: Ignoring call to setTVSignalType: in simulator.
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: void __IOHIDPlugInLoadBundles(): Loaded 0 HID plugins
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: Posting 'com.apple.iokit.hid.displayStatus' notifyState=1
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: ____IOHIDSessionScheduleAsync_block_invoke: thread_id=0xb0219000
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: HID Session async scheduling initiated.
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: HID Session async root queue running at priority 63 and schedule 2.
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: HID Session async scheduling complete.
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local locationd[4119] <Notice>: Logging binary sensor data to /Users/justin/Library/Application Support/iPhone Simulator/7.1/Library/Caches/locationd/locationdSensors.bin
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Notice>: Successfully opened the IOHIDSession
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0x13471a8 check_freshness: sb.st_mtime = 1398565636 reference_mtime = 1398565631
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123] <Notice>: (Note ) mstreamd: mstreamd starting up.
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0x13471a8 check_stale_maps: /Users/justin/Library/Application Support/iPhone Simulator/7.1/Applications appears stale
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local locationd[4119] <Error>: NBB-Could not get UDID for stable refill timing, falling back on random
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116] <Error>: HID: The 'Rate Controlled' connection 'backboardd' access to protected services is granted.
    Apr 26 22:31:04 --- last message repeated 1 time ---
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123] <Notice>: (Note ) PS: The subscription plugin class does not support push notification refreshing.
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123] <Notice>: (Note ) PS: Media stream daemon starting...
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local configd_sim[4118] <Notice>: network changed: v4(en0+:192.168.0.109) DNS+ Proxy+
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local locationd[4119] <Notice>: Location icon should now be in state 'Inactive'
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local installd[4122] <Error>: 0x13471a8 load_application_info: Info plist for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk//Applications/iOS Diagnostics.app was missing or empty
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local profiled[4120] <Notice>: (Note ) profiled: Service starting...
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local installd[4122] <Error>: 0x13471a8 load_application_info: Info plist for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk//Applications/Photo Booth.app was missing or empty
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Notice>: Switching to keyboard: en
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Warning>: KEYMAP: Chose mode=en_US@hw=US;sw=QWERTY from match=en_US@hw=US;sw=QWERTY from language=en
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0x13471a8 generate_application_map: Deferring user app list rebuild
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local securityd[4129] <Error>: unable to access hwaes key
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0x13471a8 generate_application_map: Saved updated install map for -|system|internal
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0093000 load_application_type: No applications of type VPNPlugin found in /Users/justin/Library/Application Support/iPhone Simulator/7.1/Applications
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local distnoted[4131] <Warning>: # distnote server daemon  absolute time: 34423.868850975   civil time: Sat Apr 26 22:31:04 2014   pid: 4131 uid: 501  root: yes
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0093000 generate_application_map: Saved updated install map for user|-|-
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local lsd[4132] <Warning>: LaunchServices: Seeding database
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local locationd[4119] <Warning>: Launch Services: Registering unknown app identifier com.apple.PassKit failed
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local locationd[4119] <Warning>: Launch Services: Unable to find app identifier com.apple.PassKit
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Warning>: Migration complete (if performed). (Elapsed time: 0.00 seconds)
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Warning>: -[BKSystemAppSentinel lock_bootstrap]: Telling the system app that it can start
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Warning>: LaunchServices: installing app for existing placeholder LSApplicationProxy: com.ionicframework.starter
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Warning>: LaunchServices: Not creating progress for LSApplicationProxy: com.ionicframework.starter since it is not a placeholder.
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0115000 handle_install_for_ls: Install of "/Users/justin/repos/sprout/platforms/ios/build/emulator/Sprout.app" requested by SimulatorBridge
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Error>: HID: The 'Passive' connection 'SpringBoard' access to protected services is granted.
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Error>: HID: The 'Rate Controlled' connection 'SpringBoard' access to protected services is granted.
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Loaded logger: SBAppInstallationLog
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Loaded logger: SBIconLog
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Loaded logger: SBWorkspaceLogging
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local backboardd[4116] <Warning>: -[BKSystemAppSentinel lock_notePresenceOfSystemApp:] Now monitoring "com.apple.SpringBoard"
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: *** error reading settings archive file: <SBRootSettings: /Users/justin/Library/Application Support/iPhone Simulator/7.1/Documents/com.apple.springboard.settings/RootSettings.plist> 
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: *** error reading settings archive file: <SBRootSettings: /Users/justin/Library/Application Support/iPhone Simulator/7.1/Documents/com.apple.springboard.settings/RootSettings.previous.plist> 
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:200: string SBNonDefaultSystemAppTag is not a valid gestalt question
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:200: string hidden is not a valid gestalt question
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: BTM: attaching to BTServer
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0115000 MobileInstallationInstall_Server: Installing app com.ionicframework.starter
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0115000 install_application: Performing developer delta patch
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local installd[4122] <Notice>: 0xb0115000 MobileInstallationInstall_Server: Staging: 0.41s; Waiting: 0.00s; Installation: 0.21s; LS Sync: 0.00s; Overall: 0.63s
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/libexec/lsd[4132] <Error>: Need to synchronize with MobileInstallation
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/libexec/lsd[4132] <Notice>: LaunchServices: updating cache GUID and sequence number
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local lsd[4132] <Warning>: LaunchServices:(called by PID 4115) Identifiers file does not exist.
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local lsd[4132] <Warning>: LaunchServices:(called by PID 4115) Creating new identifiers file.
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local lsd[4132] <Warning>: LaunchServices: Updating identifier store
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local mediaremoted[4139] <Error>: Property list invalid for format: 200 (property lists cannot contain NULL)
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: Normal message received by listener connection. Ignoring.
    Apr 26 22:31:05 --- last message repeated 2 times ---
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: could not find icon for representation -> com.sproutatwork.mobile
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Using your own bundle identifier as an NSUserDefaults suite name does not make sense and will not work. Break on _NSUserDefaults_Log_Nonsensical_Suites to find this
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Launch Services: Registering unknown app identifier com.apple.mobilemail failed
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Launch Services: Unable to find app identifier com.apple.mobilemail
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: No conforming principal class found in NSBundle </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/BulletinBoardPlugins/SMSBBPlugin.bundle> (loaded)
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Application windows are expected to have a root view controller at the end of application launch
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:835: still-camera is static and will never generate a notification
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: libMobileGestalt MobileGestalt.c:835: stand-alone-contacts is static and will never generate a notification
    Apr 26 22:31:05 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: could not find icon for representation -> com.sproutatwork.mobile
    Apr 26 22:31:06 JayPrimes-MacBook-Pro.local locationd[4119] <Error>: Client '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard' is attempting to masquerade as uninstalled app with effective bundle identifier 'com.apple.reminders'
    Apr 26 22:31:06 JayPrimes-MacBook-Pro.local SimulatorBridge[4115] <Warning>: Application launched after 0.00 seconds.
    Apr 26 22:31:06 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: SMS Plugin initialized.
    Apr 26 22:31:06 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Warning>: Sharing Plugin initialized.
    Apr 26 22:31:06 JayPrimes-MacBook-Pro.local SpringBoard[4126] <Error>: Normal message received by listener connection. Ignoring.
    
    Apr 26 22:31:03 JayPrimes MacBook Pro系统日志[4128]:---系统日志重新启动---
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116]::忽略对模拟器中setTVSignalType:的调用。
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116]:void\uu IOHIDPlugInLoadBundles():加载了0个HID插件
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local backboardd[4116]:发布'com.apple.iokit.hid.displayStatus'notifyState=1
    4月26日22:31:03 JayPrimes-MacBook-Pro.local BackboardDD[4116]:\uuuuuuuiHidSessionScheduleSync\u block\u invoke:thread\u id=0xb0219000
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local BackboardDD[4116]:HID会话异步调度已启动。
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local BackboardDD[4116]:HID会话异步根队列以优先级63和计划2运行。
    4月26日22:31:03 JayPrimes-MacBook-Pro.local BackboardDD[4116]:HID会话异步调度完成。
    4月26日22:31:03 JayPrimes-MacBook-Pro.local locationd[4119]:将二进制传感器数据记录到/Users/justin/Library/Application Support/iPhone Simulator/7.1/Library/Caches/locationd/locationdSensors.bin
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local BackboardDD[4116]:成功打开IOHid会话
    4月26日22:31:03 JayPrimes-MacBook-Pro.local installd[4122]:0x13471a8检查新鲜度:sb.st_mtime=1398565636参考_mtime=1398565631
    四月26日22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123]:(注意)mstreamd:mstreamd启动。
    4月26日22:31:03 JayPrimes-MacBook-Pro.local installd[4122]:0x13471a8检查过时地图:/Users/justin/Library/Application Support/iPhone Simulator/7.1/应用程序似乎过时
    4月26日22:31:03 JayPrimes-MacBook-Pro.local locationd[4119]:NBB无法获得UDID以获得稳定的重新加注时间,返回到随机模式
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local BackboardDD[4116]:HID:授予对受保护服务的“速率控制”连接“BackboardDD”访问权限。
    4月26日22:31:04---最后一条消息重复1次---
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123]:(注意)PS:订阅插件类不支持推送通知刷新。
    四月26日22:31:03 JayPrimes-MacBook-Pro.local mstreamd[4123]:(注意)PS:Media stream后台程序正在启动。。。
    4月26日22:31:03 JayPrimes-MacBook-Pro.local configd_sim[4118]:网络更改:v4(en0+:192.168.0.109)DNS+代理+
    Apr 26 22:31:03 JayPrimes-MacBook-Pro.local locationd[4119]:位置图标现在应处于“非活动”状态
    4月26日22:31:03 JayPrimes-MacBook-Pro.local installd[4122]:0x13471a8加载应用程序信息:info plist for/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk//Applications/iOS Diagnostics.app缺失或为空
    4月26日22:31:03 JayPrimes-MacBook-Pro.local profiled[4120]:(注意)profiled:Service starting。。。
    4月26日22:31:03 JayPrimes-MacBook-Pro.local installd[4122]:0x13471a8加载应用程序信息:info plist for/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk//Applications/Photo Booth.app丢失或为空
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115]:切换到键盘:en
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115]:键映射:选择模式=en_US@hw=美国;sw=来自匹配的QWERTY=en_US@hw=美国;sw=QWERTY来自语言=en
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122]:0x13471a8生成应用程序映射:推迟用户应用程序列表重建
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local securityd[4129]:无法访问hwaes密钥
    4月26日22:31:04 JayPrimes-MacBook-Pro.local installd[4122]:0x13471a8生成应用程序映射:已保存的更新安装映射,用于-|系统|内部
    4月26日22:31:04 JayPrimes-MacBook-Pro.local installd[4122]:0xb0093000加载\应用程序\类型:在/Users/justin/Library/application Support/iPhone Simulator/7.1/applications中未找到VPNPlugin类型的应用程序
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local distnoted[4131]:#distnote服务器守护程序绝对时间:34423.868850975民用时间:Sat Apr 26 22:31:04 2014 pid:4131 uid:501根:是
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local installd[4122]:0xb0093000生成应用程序地图:为用户保存更新的安装地图|-|-
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local lsd[4132]:LaunchServices:种子数据库
    4月26日22:31:04 JayPrimes-MacBook-Pro.local locationd[4119]:启动服务:注册未知的应用程序标识符com.apple.PassKit失败
    4月26日22:31:04 JayPrimes-MacBook-Pro.local locationd[4119]:发布服务:找不到应用标识符com.apple.PassKit
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local BackboardDD[4116]:迁移完成(如果执行)。(运行时间:0.00秒)
    4月26日22:31:04 JayPrimes-MacBook-Pro.local BackboardDD[4116]:-[BKSystemAppSentinel lock_bootstrap]:告诉系统应用程序它可以启动
    Apr 26 22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115]:启动服务:为现有占位符LSApplicationProxy安装应用程序:com.ionicframework.starter
    4月26日22:31:04 JayPrimes-MacBook-Pro.local SimulatorBridge[4115]:LaunchServices
    
    document.addEventListener("deviceready", onDeviceReady, false);
            function onDeviceReady(){          
                console.log("ON DEVICE READY!!!");
                navigator.splashscreen.hide();
            }
    
    <allow-navigation href="*"/>
    
    <allow-navigation href="*://localhost/*"/>
    
    $ ionic emulate -lcs --address localhost ios