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

Same here Xcode 14.3 / Ventura 13.3.1 / MacBook Air 2020 M1

Same issue macOS 13.3.1, XCode 14.3

Also sometimes app takes much longer time at first launch

Same here. It's a world wide issue.

Can someone raise this in WWDC 2023?

I was having this problem using Xcode 14.2 on macOS Ventura. All the simulators crashed during the launch phase, they had runtime 16.2. I solved by downloading an older runtime, for example 16.0, with the latter the simulators work correctly.

Same here: Ventura 13.3.1 / Xcode 14.2 / MacBook Air 2020 M1

It started right after I upgraded to Ventura.

Xcode 14.3 (14E222b), MacOS 13.3.1 (22E261) and M2 Max still same issue 🤯

FINALLY!! I managed to fix the problem for me, and it works like a charm with MacBook Pro M1 Ventura with Xcode 14.3!!

Problem

the root problem is a compatibility issue with arm64 arch with your project pods causing the simulator to freeze,

I noticed that the problem occurred after upgrading to Ventura with Xcode 14, my project have at least 22 pods, I remember once my project didn't compile because of some libraries I have which caused my build to fail, the error was arm64 compatibility issue shown in the imports, i.e.

import Kingfisher <--- Could not build Objective-C module 'Kingfisher'

I did some research and a lot of solutions excluded arm64 arch from project settings, so I did that

Project -> Build Settings -> Exclude architectures

and pod settings in Podfile by this config:

config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"

the project was compiling correctly without any errors however after few runs the simulator freezes with black screen and Xcode stuck at "Launching Application" state

Solution:

I hope this works for you all as it's indeed worked for me:

  • Remove Exclude architectures from your project settings and your pod settings (if any).
  • Do NOT run your Xcode with Rosetta
  • Make sure your pods supports arm64 arch and updated to the latest versions.

I've tried building and running my project couple of times and I've never faced the issue again plus it's a lot faster!

Any update on that fix? It is very annoying to have to restart the simulator every 2 builds

Valid on Xcode 14.3

Same Problem here, Xcode 14.3, after every launch i have to quit the simulator to launch the app again.

Same issue with xCode v14.3 in M1 Pro MBP

My issue solved and here is my steps:

  • Removed Xcode(Which was downloaded from official developer web site)
  • Install the Xcode from AppStore.

That's it.

@silashayri this does not help.

I don't believe Apple's going to fix this.

Similar thing happening over here. Happens with any simulator whether ios 16 or 14, xcode 14.2, after I stop running my app to build again after a change, the screen goes black in the simulator and I have to close it in order to be able to attach the new build. This happens almost every time, but sometimes does not.

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