Can't debug

I can run my test project without debugging as usual. However, doing a normal run causes the splash screen for the app to appear in the iOS simulator, and nothing further happens. Hitting the home button on the simulator sometimes clears the simulator, sometimes hangs it, and sometimes shows the app starting to re-run, but hanging again at the splash screen. The Console logs for the two cases are shown below.

Run w/o debugging:

4/26/14 4:41:13.802 PM Fire[328]: xbuild /Users/jobrien/Source/UnitOOPS/Source/Nougat/iPhoneApp1/iPhoneApp1.sln /nologo /target:Build /verbosity:normal /property:Configuration=Debug /toolsversion:4.0
4/26/14 4:41:14.387 PM com.apple.iphonesimulator.launchd.7964475d[1644]: (UIKitApplication:com.unitoops.iPhoneApp1[0x9fc5][1689]) Service exited due to signal: Killed: 9
4/26/14 4:41:14.643 PM com.apple.iphonesimulator.launchd.7964475d[1644]: (com.apple.xpc.launchd.domain.pid.iPhoneApp1.1697) Could not resolve origin of domain. Bundled XPC services will not work in this process.
error: 22: Invalid argument
4/26/14 4:41:14.647 PM com.apple.iphonesimulator.launchd.7964475d[1644]: (com.apple.xpc.launchd.domain.pid.iPhoneApp1.1697) Failed to bootstrap path: /Users/jobrien/Library/Application Support/iPhone Simulator/7.1/Applications/50020515-EED3-4A14-9ED9-95656B86A8DF/iPhoneApp1.app/iPhoneApp1
error: 22: Invalid argument

Run:

4/26/14 4:41:56.277 PM Fire[328]: xbuild /Users/jobrien/Source/UnitOOPS/Source/Nougat/iPhoneApp1/iPhoneApp1.sln /nologo /target:Build /verbosity:normal /property:Configuration=Debug /toolsversion:4.0
4/26/14 4:41:56.800 PM com.apple.iphonesimulator.launchd.7964475d[1644]: (UIKitApplication:com.unitoops.iPhoneApp1[0x69d3][1697]) Service exited due to signal: Killed: 9
4/26/14 4:41:56.931 PM Fire[328]: got pid: 1709
4/26/14 4:41:57.063 PM com.apple.debugserver-310.2[1712]: debugserver-310.2 for x86_64.
4/26/14 4:41:57.063 PM com.apple.debugserver-310.2[1712]: Attaching to process 1709…
4/26/14 4:41:57.000 PM kernel[0]: warning: debugserver(1712) performed out-of-band resume on iPhoneApp1(1709)
4/26/14 4:41:57.327 PM com.apple.debugserver-310.2[1712]: Listening to port 38337 for a connection from 0.0.0.0…

This sees to be the issue. No idea what it means, but it looks to be unrelated to the actual debugging. I’d suggest Resetting your Simulator, killing it and rebooting the Mac. One cause could be multiple apps with the same ID. the Sim really doesn’t like that.

That said, it looks like i need to improve the error checking further. It’s curious that fire reports “Fire[328]: got pid: 1709”, though. did you trim that log file before you posted it? can you post the full thing? (i don’t need the build, but everything after it starting with the launch of crossboxhelper…

I gave you everything from the log from the launch on that happened within the next few seconds. Nothing relevant occurred later.

I’ll try resetting the simulator. I already rebooted a couple of times.

I reset the simulator and rebooted the Mac. I then opened Fire and built and ran. The app still stopped on the splash screen in the simulator. I then opened Console. Below is the entire content of my Console log from when I attempted to run the app.

Btw clicking in the gutter doesn’t seem to do anything. Clicking a line number highlights it in a blue rounded rect - is that how you denote breakpoints, or am I unable to set breakpoints too?

—cut here—
4/27/14 10:21:47.008 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.SimulatorBridge) This service is defined to be constantly running and inherently inefficient.
4/27/14 10:21:47.011 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.backboardd) This service is defined to be constantly running and inherently inefficient.
4/27/14 10:21:47.011 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.backboardd) Unknown key for Boolean: HighPriorityIO
4/27/14 10:21:47.011 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.assetsd) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.011 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.configd_sim) This service is defined to be constantly running and inherently inefficient.
4/27/14 10:21:47.011 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.configd_sim) The Umask key is not yet implemented. If you rely on this key, please file a bug.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.cfnetwork.cfnetworkagent) The StartInterval key is no longer respected. Use XPC Activity instead.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.calaccessd) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.dataaccess.dataaccessd) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.EscrowSecurityAlert) Unknown key for string: seatbelt-profiles
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.gamed) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.gamed) The Umask key is not yet implemented. If you rely on this key, please file a bug.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.FileCoordination) The SoftResourceLimits key is no longer respected. Please remove it.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.FileCoordination) The HardResourceLimits key is no longer respected. Please remove it.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.geod) The StartInterval key is no longer respected. Use XPC Activity instead.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.iCloudKeychainStats) The StartInterval key is no longer respected. Use XPC Activity instead.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.iCloudKeychainStats) The Umask key is not yet implemented. If you rely on this key, please file a bug.
4/27/14 10:21:47.012 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.identityservicesd) Unknown key for KeepAlive: SuccessfulExit
4/27/14 10:21:47.023 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.managedconfiguration.mdmd) The Nice key is no longer respected. Please remove it.
4/27/14 10:21:47.023 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.locationd) The StartInterval key is no longer respected. Use XPC Activity instead.
4/27/14 10:21:47.023 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.locationd) Unknown key for KeepAlive: SuccessfulExit
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.itunesstored) The AfterInitialDemand key is not yet implemented. If you rely on this key, please file a bug.
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.itunesstored) Unknown key for KeepAlive: SuccessfulExit
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.mediaremoted) Unknown key for KeepAlive: SuccessfulExit
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.Maps.geocorrectiond) The StartInterval key is no longer respected. Use XPC Activity instead.
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.lsd) Invalid type for Jetsam property (property/type): JetsamMemoryLimit/double
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.midiserver.sim) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.mediastream.mstreamd) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.mediastream.mstreamd) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.024 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.mediastream.mstreamd) Unknown key for KeepAlive: SuccessfulExit
4/27/14 10:21:47.025 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.OTAPKIAssetTool) The Umask key is not yet implemented. If you rely on this key, please file a bug.
4/27/14 10:21:47.025 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.passd) Unknown key for Boolean: CFBundleAllowMixedLocalizations
4/27/14 10:21:47.025 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.printd) The Nice key is no longer respected. Please remove it.
4/27/14 10:21:47.026 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.search.appindexer) The Nice key is no longer respected. Please remove it.
4/27/14 10:21:47.026 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.sharingd) This service is defined to be constantly running and inherently inefficient.
4/27/14 10:21:47.026 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.securityd) The ServiceIPC key is no longer respected. Please remove it.
4/27/14 10:21:47.026 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.securityd) The OnDemand key is no longer respected. Please remove it.
4/27/14 10:21:47.026 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.securityd) The Umask key is not yet implemented. If you rely on this key, please file a bug.
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.SpringBoard) Unknown key for Boolean: EmbeddedHomeScreen
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.SpringBoard) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.SpringBoard) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.SpringBoard) The HideUntilCheckIn property is an architectural performance issue. Please transition away from it.
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.SpringBoard) This service is defined to be constantly running and inherently inefficient.
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.SpringBoard) Unknown key for Boolean: HighPriorityIO
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.syncdefaultsd) The StartInterval key is no longer respected. Use XPC Activity instead.
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.syslogd) The OnDemand key is no longer respected. Please remove it.
4/27/14 10:21:47.027 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.ubd) The Disabled key is no longer respected. Please remove it.
4/27/14 10:21:47.028 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.UserEventAgent-System) This service is defined to be constantly running and inherently inefficient.
4/27/14 10:21:47.028 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.voiced) The ServiceIPC key is no longer respected. Please remove it.
4/27/14 10:21:47.028 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.voiced) The OnDemand key is no longer respected. Please remove it.
4/27/14 10:21:47.029 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.voiced) Invalid type for Jetsam property (property/type): JetsamMemoryLimit/double
4/27/14 10:21:47.483 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.sharingd[906]) Could not find program specified by service: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/libexec/sharingd
4/27/14 10:21:47.483 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.sharingd[906]) Service setup event to handle failure and will not launch until it fires.
4/27/14 10:21:47.483 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.UserEventAgent-System[908]) Could not find program specified by service: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/libexec/UserEventAgent
4/27/14 10:21:47.483 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.UserEventAgent-System[908]) Service setup event to handle failure and will not launch until it fires.
4/27/14 10:21:47.484 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.routined[905]) Could not find program specified by service: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/libexec/routined
4/27/14 10:21:47.484 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.routined[905]) Service setup event to handle failure and will not launch until it fires.
4/27/14 10:21:47.724 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.syslogd[909]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.system.logger
4/27/14 10:21:47.974 AM iPhone Simulator[890]: Screen port created with width 0, height 0, size 0
4/27/14 10:21:48.089 AM loginwindow[118]: hidd died. Reestablishing connection.
4/27/14 10:21:48.089 AM WindowServer[156]: hidd died. Reestablishing connection.
4/27/14 10:21:48.090 AM loginwindow[118]: hidd died. Reestablishing connection.
4/27/14 10:21:48.141 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.GSSCred) Unknown key for dictionary: no-EnvironmentVariables
4/27/14 10:21:48.478 AM com.apple.iphonesimulator.launchd.6759c58c[892]: (com.apple.xpc.launchd.domain.pid.SpringBoard.907) Failed to bootstrap path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/PrivateFrameworks/CloudServices.framework/XPCServices/com.apple.lakitu.xpc
error: 107: Malformed bundle
4/27/14 10:21:48.883 AM SpringBoard[907]: objc[907]: Class AXEmojiUtilities is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/PrivateFrameworks/AccessibilityUtilities.framework/AccessibilityUtilities and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libAXSpeechManager.dylib. One of the two will be used. Which one is undefined.
4/27/14 10:21:49.898 AM Fire[856]: got pid: 922
4/27/14 10:21:50.038 AM com.apple.debugserver-310.2[929]: debugserver-310.2 for x86_64.
4/27/14 10:21:50.038 AM com.apple.debugserver-310.2[929]: Attaching to process 922…
4/27/14 10:21:50.000 AM kernel[0]: warning: debugserver(929) performed out-of-band resume on iPhoneApp1(922)
4/27/14 10:21:50.317 AM com.apple.debugserver-310.2[929]: Listening to port 62144 for a connection from 0.0.0.0…
4/27/14 10:22:00.049 AM Console[935]: setPresentationOptions called with NSApplicationPresentationFullScreen when there is no visible fullscreen window; this call will be ignored.

Looks like this is broken on my end, sorry. See, my last reply to Permission Denied Running DebugServer for details. I have this fixed for the next update.

—marc