9

While developing Native apps from Xcode, the screen of my app goes black and xcode 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 event 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!!!

HangarRash
  • 7,314
  • 5
  • 5
  • 32
MBH
  • 16,271
  • 19
  • 99
  • 149
  • Same as https://stackoverflow.com/questions/74315983/simulator-get-blanked-when-running-app-in-debug-mode-second-time-in-14-1-and-14 probably – matt Apr 24 '23 at 02:45
  • 1
    I too have the exact same problem, no luck so far except restarting the simulator every time !! – Dhaval H. Nena Apr 24 '23 at 05:53
  • Does this answer your question? [Xcode 14 stuck at Launching App on Simulator after few runs](https://stackoverflow.com/questions/74871974/xcode-14-stuck-at-launching-app-on-simulator-after-few-runs) – mefahimrahman Jul 27 '23 at 09:42

2 Answers2

0

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.

Jusuf Saiti
  • 127
  • 2
  • 7
  • Unfortunately, this will cause my program to fail to compile under the emulator – Rakuyo Jul 26 '23 at 06:53
  • @Rakuyo Please amake sure you have removed `EXCLUDED_ARCHS` from all targest included the pods. Also this does not work (the app won't run in simulator) if you are using Xcode with Rosetta. – Jusuf Saiti Jul 26 '23 at 09:57
-1

i have same issue, and i will done to this. move all your project to local drive (i dont know but when i move to local this work). Dont put your project to icloud.