Apple Vision Pro - Unable to boot the Simulator

Hi,

I have install Xcode Beta 2. Creating a VisionOS app and running it gives me the following error. I have submitted an issue to Apple Feedback.

Anyone faces the same issue and have a quick workaround for me? Thanks.


Unable to boot the Simulator. Domain: NSPOSIXErrorDomain Code: 60 Failure Reason: launchd failed to respond. User Info: { DVTErrorCreationDateKey = "2023-06-22 00:13:12 +0000"; IDERunOperationFailingWorker = "_IDEInstalliPhoneSimulatorWorker"; Session = "com.apple.CoreSimulator.SimDevice.133D85C4-93F9-4BC7-9F7F-3AD80E15DCD5"; }

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

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "RealityDevice14,1"; "device_osBuild" = "1.0 (21N5165g)"; "device_platform" = "com.apple.platform.xrsimulator"; "dvt_coredevice_version" = "325.3"; "dvt_mobiledevice_version" = "1643.0.15.505.1"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 10345; "operation_errorCode" = 60; "operation_errorDomain" = NSPOSIXErrorDomain; "operation_errorWorker" = "_IDEInstalliPhoneSimulatorWorker"; "operation_name" = IDERunOperationWorkerGroup; "param_consoleMode" = 0; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 3; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.xrsimulator"; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_queueDebugging_enable" = 1; "param_diag_runtimeProfile_generate" = 0; "param_diag_sanitizer_asan_enable" = 0; "param_diag_sanitizer_tsan_enable" = 0; "param_diag_sanitizer_tsan_stopOnIssue" = 0; "param_diag_sanitizer_ubsan_stopOnIssue" = 0; "param_diag_showNonLocalizedStrings" = 0; "param_diag_viewDebugging_enabled" = 1; "param_diag_viewDebugging_insertDylibOnLaunch" = 1; "param_install_style" = 0; "param_launcher_UID" = 2; "param_launcher_allowDeviceSensorReplayData" = 0; "param_launcher_kind" = 0; "param_launcher_style" = 0; "param_launcher_substyle" = 0; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "xrsimulator1.0"; "sdk_osVersion" = "1.0"; "sdk_variant" = xrsimulator; }

System Information

macOS Version 14.0 (Build 23A5276g) Xcode 15.0 (22181.22) (Build 15A5161b) Timestamp: 2023-06-22T08:13:12+08:00

Did you download the Simualtor Runtime visionOS_1_beta_Simulator_Runtime.dmg and copy the contents to the /Library folder? You also have to give the simulator permission to run in the Mac's Security & Privacy Settings

I'm having the same issue. I have the runtime, and can see the preview canvas fine.

@pr0fess0r what exactly do you need to do in Security and Privacy? What permissions must be given to what application?

I have enabled the Privacy & Security to Allow applications downloaded from Anywhere in Terminal.

During the installation process, I copied the Xcode binary to Applications folder. Launching it, it triggers a download and verify process. At the end of the verification I saw both iOS and VisonOS simulator verified successfully with checked boxes. However launching either simulator with a newly created app gives me the same error.

@pr0fess0r Can I ask you, when I copy the files to the /Library folder, do I just copy the Profiles folder in the dmg into the /Library/Developer/CoreSimulator folder?

Apple Vision Pro - Unable to boot the Simulator
 
 
Q