Unable to Boot Simulator - Xcode 14.0.1 - xcode

I am running XCode 14.0.1 on mac ios 12.6. When I try to run any app in any simulator I get and alert:
"Unable to boot the Simulator. Interrupted System Call."
I have followed steps described in other posts. I've gone to About this Mac > Storage > Manage > Developer and deleted XCode Cache. I've deleted and re-added simulators in XCode itself. I even re-installed XCode. Nothing works.
When I check the "Detail" button in my "Unable to Boot" alert, I also get this:
"Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding
Domain: com.apple.SimLaunchHostService.RequestError
Code: 4"
Does anyone have any clues as to what is happening?
Thanks

Related

IOS simulator crashing

I just download Ios 13.7 simulator in Xcode 12.2, it is crashing without opening.
Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding
I am very new to this, please help. I search on internet also but could not found any solution. System restart / XCODE restart i have done.

Failed to boot IBSimDeviceTypeiPad2x

Accessing storyboard hangs xcode, then throws error below.
This happens for newly created project, on newly (re)installed xcode.
I've tried xcrun simctl commands, there is no device with UDID: 9C08E254-108D-49F6-A1FC-CE43B2F30EB9.
Not clear which device IBSimDeviceTypeiPad2x is.
Deleted and recreated all iPad devices in Simulator.
iPad 2 is not possible on iOS 11.4
Have already done complete uninstall and reinstall of xcode (including removing ~/Library/Developer / Cache / Application Support stuff.
Problem persists.
Error:
Encountered an error communicating with Interface Builder Cocoa Touch Tool.
(Failure reason: Interface Builder Cocoa Touch Tool failed to launch):
Failed to boot device IBSimDeviceTypeiPad2x (9C08E254-108D-49F6-A1FC-CE43B2F30EB9, iOS 11.4, Shutdown)
System content for IBCocoaTouchFramework-ElevenAndLater <IBScaleFactorDeviceTypeDescription:
0x7f93a450bec0> scaleFactor=2x (Failure reason: Failed to boot IBSimDeviceTypeiPad2x (9C08E254-108D-49F6-A1FC-CE43B2F30EB9, iOS 11.4, Shutdown)):
Unable to boot the Simulator. (Failure reason: launchd failed to respond.)
launchd_sim log contains:
missing or invalid configuration plist
xcode version:
Version = 9.4.1 (9F2000)
Plugin Version = 14113
Beta Version = 0
OS Version = 10.13.6 (17G65)
In case this helps anyone else with this issue: after weeks of back and forth with Apple Support, we tracked this down to either third party kernel extensions or third-party antivirus. After thoroughly ensuring both were disabled, Storyboard editing became available again. In my case, it was most likely Little Snitch that was interfering (make sure both Network Filter & Network Monitor are set to the "off" position). There could potentially be a Little Snitch rule that's interfering as well, I haven't spent enough time to track it down yet.
I have been struggling with this for some time, filed a bug report with Apple and they claimed I didn't have permission. No reference to what permissions.
Towards the bottom of the log file from the bug report was the following text.
"You don’t have permission to save the file “60ACC3A5-E7E2-4330-869B-15447826C019” in the folder “CoreSimulator”." UserInfo={NSFilePath=/Users/terryburdett/Library/Logs/CoreSimulator/60ACC3A5-E7E2-4330-869B-15447826C019, NSUnderlyingError=0x7fda1871c8b0 {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}}}}}
Follow the path to Logs and getinfo on Logs folder. If your name isn't in the sharing and permissions list, unlock the folder and add it. Change permissions to read/write. Next time you run Xcode it should create an CoreSimulator folder in the Logs folder and compile without bug.

LLDB RPC server freezes app

For the past months I have not been able to debug macOS or iOS apps through Xcode. What happens is the following:
Build and run app from Xcode.
Xcode says app is running, but no app has appeared and no debug output from app either.
Kill the process lldb-rpc-server.
App appears and runs as normal, but Xcode is no longer debugging.
Start a new debugging session by attaching it to the app's process.
App freezes again, until lldb-rpc-server is killed.
This OpenRadar has the same description.
I have tried re-installing Xcode (including command-line tools), but it didn't help. Any ideas?
Xcode: Version 9.3.1 (9E501)
MacOS: 10.13.4 (17E199)
The cause of this was that I had installed a GDB/LLDB-extension called Voltron. I was unaware that the installation also created/modified the .lldbinit in the home folder. Removing this file fixed the issue. See also this issue for Voltron.
Got some very good help from Apple.
I had received this warning msg when device was locked and I was running app on device, so when device is unlocked this warning goes

Message from debugger: unable to attach error for osx app

I have been building mac app on my mac mini and it always worked well but today i faced this error, searched a lot but no luck.
Message from debugger: unable to attach
What i tried:
Clear derived data
Quit Xcode
Restart machine
installation directory set to blank and also to /Applications
Tried Skip Install No / Yes
Using developer Signing certs
M using only Developer certificates and not provisioning profile to sign my cocoa app
Xcode 8.2
OSX 10.12.1
Please help :)
This is what fixed it for me, perhaps it will help others but I do realize the question was for 8.2. I had it set to Xcode 9 "New Build System" disabling this and switching to "Standard Build System" in the Project Settings under the File Menu. I had tried all the other things like killing DerivedData, clean build, restarting Xcode. I also verified that my dependent libraries were set correctly. The only thing that worked was disabling new "New Build System"
I just had this problem today. I have little demo code in a mac project(created with Xcode 9.4). This error just started to occur after I upgraded system to macOS Mojave 10.14. However, in Xcode 10 this project runs no problem(without changing anything). If you can use Xcode 10 it will probably be fixed.
Unfortunately, the above solutions didn't work for me (although I am sure they work for some people).
Here is what worked for me, in case this helps anyone else:
Close Xcode
Open Xcode and Create a new Xcode project
In the iOS template, select Single View App then click Next
yes, I know you are trying to get a macOS app attaching to the debugger :).
Give the iOS app any product name and organization identifier you would like and click Next
Create the new project anywhere you would like (I saved it to my desktop)
Build and run (cmd + r) the iOS app on a simulator like the iPhone 8 (starting a simulator and running the iOS app will take a little time, so have patients)
After the iOS app runs in the simulator, click to stop it from running (the stop button is next to the run button)
Open your macOS app that you are having trouble connecting a debugger to, and build and run it (cmd + r)
This, for some reason, allowed me to connect to the debugger with my macOS app...
Xcode version: 10.1, macOS Mojave version: 10.14.2

Upgrade to iOS 5 caused my app to stop being debugged

I have upgraded my iphone to iOS5 to test my application behavior on iOS5
After verified it has issues, i have downgraded my device to iOS 4.3.5
since than I am trying to debug my application using XCode and get the following error:
Error starting executable
No provisioned iOS device is connected.
Does anyone know how to fix this issue - so i can debug my application again?
Edit:
Also another relevant piece of info when I use the configuration drop down selector i get
Under Active Executable - "no device available"
I have managed to fix the issue:
I took a look at the following similar question :
Xcode - No provisioned iOS device is connected
So i wanted to see what i see in the snapshot that the user had : and there it was...
I didn't see any information like he did, all i saw was
A button called "enable for debugging" if i'm not mistaken.
Clicked on it, and Worked like a charm.... :)
You could try deleting the provisioning profile from the device via the xcode organizer window, or within the Settings App on the device. Then add back your current prov profile from the iOS provisioning portal.
Also, make sure you have the debugging symbols/SDKs for that iOS under
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/[insert ios version folder here]
And:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/[insert ios version folder here]

Resources