How to stop an App at the Launch Screen in XCode

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

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 08/30/2023 at 12:03
Last Updated on 08/31/2023 at 14:00
<p>Two flowers that represent Swift and XCode side by side. Beneath them sits the text “Stop App Build at the Splash Screen”.</p>

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

SubscribeDownload open source projectHow to create a SwiftLint enabled Swift Xcode Project

Step One: Add the Breakpoint

<p>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.</p>

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

How to add and use a breakpoint in XCodeHow to remove a breakpoint in XCode

Step Two: Run the Application

<p>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.</p>

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.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe