如果您使用cordova emulate ios在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.发布于 2016-02-29 11:33:01
当我更新ios平台时,我点击了WSoD,我认为(不确定)它也更新了一些插件。我完全无法调试这个问题,因为我没有收到任何控制台错误,而所有的工作都很好,不需要实时重新加载。
事实证明,问题在于白名单。这个应用程序根本不允许访问livereload服务器。我在config.xml中添加了以下行,并重新启动了live:
<allow-navigation href="*"/>当然,这是非常宽容的,不推荐实际生产,但至少它解决了问题。从技术上讲,如果不使用活动重新加载,这是不必要的,因此可以简单地省略用于生产。然而,如果安全是一个关切,另一种选择可以是:
<allow-navigation href="*://localhost/*"/>但在执行此操作时,在运行--address时必须添加emulate选项。
$ ionic emulate -lcs --address localhost ios发布于 2014-10-14 09:29:43
在我的飞溅屏幕和我的cordova 3.6应用程序的第一页之前,我得到了一个白色的屏幕。当我安装org.apache.cordova.splashscreen插件并在平台iOS文件夹中的config.xml中创建autohidesplashscreen = false时,这个问题就消失了。
然后,您可以使用以下方法在设备中隐藏启动屏幕:
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady(){
console.log("ON DEVICE READY!!!");
navigator.splashscreen.hide();
}还要添加的另一件事是,我只使用.xcodeproj运行项目,而不使用终端,并且在platform/iOS中使用index.html。
https://stackoverflow.com/questions/23319121
复制相似问题