Xcode 16: AppLaunchTimeoutError: Failed to launch app in reasonable time

Xcode Version: 16 MacOS Version: 15.0

My app has 2 packages: Firebase iOS SDK (https://github.com/firebase/firebase-ios-sdk.git) Google Mobile Ads (https://github.com/googleads/swift-package-manager-google-mobile-ads.git)

My app fails to run on the Xcode Preview window. The app works successfully on a simulator when built. But, not in the Xcode Preview.

I have tried:

  • Cleaning and rebuilding.
  • Changing the target device.
  • Resetting Package Cache

There are no solutions mentioned/provided online. I have a previews-diagnostics zip file ready. Who can I share it with?

Xcode 16: AppLaunchTimeoutError: Failed to launch app in reasonable time
 
 
Q