gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-01 18:14:42 24 4
gpt4 key购买 nike

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

  • 选择ios app --->后,在Safari中打开了控制台日志,这什么也没显示,因为在应用程序启动之前您无法连接,这意味着您看不到任何启动日志...(据我所知)
  • 在系统日志中仔细查看了ios模拟器,但没有发现任何线索。有很多错误,但不确定是哪一个错误?我将日志复制并粘贴到此处...
  • 下载了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.

    最佳答案

    我在更新ios平台时碰到了WSoD,我认为(不确定)它也更新了一些插件。我完全无法调试问题,因为在没有实时重新加载的情况下一切正常,我没有收到任何控制台错误。

    事实证明,问题出在白名单上。根本不允许该应用访问livereload服务器。我在config.xml中添加了以下几行,实时重新加载开始重新工作:

    <allow-navigation href="*"/>

    当然,这是非常宽松的,不建议在实际生产中使用,但至少可以解决这个问题。从技术上讲,如果不使用实时重新加载,则没有必要,因此可以在生产中将其省略。但是,如果考虑到安全性,则可以选择以下替代方法:
    <allow-navigation href="*://localhost/*"/>

    但是在执行此操作时,有必要在运行 --address时添加 emulate选项:
    $ ionic emulate -lcs --address localhost ios

    关于ios - ios白色屏幕上的Cordova混合应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23319121/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com