XCode 14.1: Stuck at "Launching Application" after building the project

Hello team, On Xcode 14.1, After building the project and when the simulator launches, it shows blank black screen. Here steps to reproduce:

  1. build the project with fresh device. Try changing the language to French in device settings
  2. Device should launch in French language. Instead, it loads and goes blank (blank screen)
  3. Quit the simulator (XPC error is displayed) and rebuild the project using the same simulator device.
  4. Build succeeds and simulator launches, but has blank screen on simulator.
  5. Xcode is stuck at "Launching Application"

Is this a known issue? Has anyone experienced the same? How can I fix this? Stack (https://stackoverflow.com/questions/74315983/xcode-stuck-on-launching-application) says its a bug, so posting here for recommendations

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! hello,every body,i find the right way to resolve this problem !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

1.upgrad your macOS version to 13.4.1 (22F82) 2.download xcode15 beta2

3.user xcode 15 build your project(must instal ios17 simulator) 4.have fun !

Same issue with xCode Version 14.3.1 in M1 Pro MBP

For me I resolve issue by go to /Users/datpham/Library/Developer/CoreSimulator and delete data in Caches folder. Then restart emulator and it works for me. Hop it help some one

Seem the issue not recognizing by Apple, still persist on Xcode 14.2 MacBook 14inch M2 Pro. Very frustrating

Xcode 15.0 (iOS 17) Fixed this issues 🎉

same issue with xcode 15 (ios 17)

simulator logs:

Invalid device state Domain: com.apple.CoreSimulator.SimError Code: 405 User Info: { DVTErrorCreationDateKey = "2023-09-20 06:30:22 +0000"; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; SimCallingSelector = "installApplication:withOptions:error:"; }

The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died) Domain: NSMachErrorDomain Code: -308

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone15,4"; "device_osBuild" = "17.0 (21A328)"; "device_platform" = "com.apple.platform.iphonesimulator"; "dvt_coredevice_version" = "348.1"; "dvt_mobiledevice_version" = "1643.2.4"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 21567; "operation_errorCode" = 405; "operation_errorDomain" = "com.apple.CoreSimulator.SimError"; "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher; "operation_name" = IDERunOperationWorkerGroup; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 3; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphonesimulator"; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 0; "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" = 0; "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_structuredConsoleMode" = 1; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphonesimulator17.0"; "sdk_osVersion" = "17.0"; "sdk_variant" = iphonesimulator; }

System Information

macOS Version 13.5.2 (Build 22G91) Xcode 15.0 (22265) (Build 15A240d) Timestamp: 2023-09-20T11:30:22+05:00

macOS 14 , Xcode 15 still has the same issue. That make me crazy. Now I can only develop on iOS device.

APPLE APPLE APPLE KNOCK KNOCK KNOCK As of today Oct 13 Horror Friday - On Apple Silicon M2 Pro This issue is still there Simulator Stuck at "Launching Application" after building the project My Xcode version 14.3.1 MacOS Ventura 13.0

Please help ...

Anyone found solution ??

We believe that the primary issue causing this behavior is addressed in Xcode 15.0.1. Please update to Xcode 15.0.1 and see if that addresses the issue for you. If it doesn't, please file a bug report with Feedback Assistant including:

1 - sysdiagnose captured while in the state. 2 - xcrun simctl diagnose captured while in the state

@jeremyhu Xcode 15.0.1 does not fix the issue to me, I can reproduce it quite consistently. But I also don't see any mentions of this in the official release notes? https://developer.apple.com/documentation/xcode-release-notes/xcode-15_0_1-release-notes

Are you sure that's the version it's supposed to fix this issue? 🤔

Xcode 15.1 Beta doesn't fix this

In order not to kill the simulator every time after rebuild, I will kill the app before rebuild.

or you could make a script to do this job,make a key bindings to run the "kill app behavior" script just like:

#!/bin/sh
# set you bundle identifier
bundle_id=com.***.***
# find running device
device=$(xcrun simctl list | grep 'Booted' | awk -F'[()]+' '{print $2}')
# terminate it
#xcrun simctl terminate $device $bundle_id

array=( com.Addcn.car8891 com.addcn.newcar8891 )
for i in "${array[@]}"
do
    xcrun simctl terminate $device $i
done

Same issue with Xcode Version 15.1 beta 3 (15C5059c)

Just bought M3 chip MBP, got this issue. Googled this issue seems at least on year ago since Xcode 14. Apple please fix it.

Environment: ** Xcode 15.0.1 macOS Sonoma 14.1.2. **

Finally, still exist in Xcode 15.1 😭

XCode 14.1: Stuck at "Launching Application" after building the project
 
 
Q