Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Black screen my app on Simulator and stuck at Launching App every couple of runs - macos ventura

While developing native apps from Xcode, the screen of my app goes black and Xcode is stuck on launching app and attaching to iPhone 14 Pro as in screenshot below:

xcode & simulator

When my app's screen goes black, the simulator still works normally. If I kill my app and restart it, it stuck on launch screen.

I tried before last updates to set to Rosetta Stone, but I was facing same issue. After updating Xcode and macOS, I don't even have the Rosetta option.

xcode no rosetta option

I am using:

  • Device: Macbook Pro, M1 Pro
  • Xcode: 14.3 (14E222b)
  • macOS: Ventura 13.3.1
  • project is developed with Swift, uses Cocoapods

The only thing that works now is killing the process of the simulator completely, and restarting it from Xcode.

NOTE: When I develop flutter apps from Android studio on iOS Simulator, everything works just fine.

UPDATE: 09/19/2023: It is still the same on Xcode 15.0 public release.

black screen on iPhone15 xcode 15.0

like image 539
MBH Avatar asked Nov 30 '25 02:11

MBH


1 Answers

If you have added Excluded Architectures - arm64 for Any iOS Simulator SDK, please remove that for all targets in your app.

enter image description here

Also, if you are using Pods and have implemented this code on your Podfile,

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  end
end

please delete this from Podfile and hit pod install.

like image 60
Jusuf Saiti Avatar answered Dec 02 '25 19:12

Jusuf Saiti