How to stop an App at the Launch Screen in XCode

Oscar de la Hera Gomez
Two flowers that represent Swift and XCode side by side. Beneath them sits the text “Stop App Build at the Splash Screen”.

A step by step guide on using a breakpoint to stop an iOS, MacOS, TVOS or WatchOS app at the splash screen in XCode.

Step One: Add the Breakpoint

A screenshot of XCode highlighting that we have set a breakpoint on line 14 of the AppDelegate.swift file. This breakpoint is exactly one line under the application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: <strong>Any</strong>]?) -&gt; Bool function.

In the AppDelegate.swift of the project, add a breakpoint in the application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool function.

Step Two: Run the Application

A screenshot of XCode showing that we have set a breakpoint on line 14 of the AppDelegate.swift file. We have highlighted the play button that appears on the top left of XCode. Click this button to run the app on a device. As we have set the breakpoint on line 14, the app will stop at the Splash screen, allowing you to analyze it.

Press the Play button on the top left of Xcode, or press Command + R on your keyboard.

Thanks to the breakpoint we setup in Step One, the app will stop at the splash screen.

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details