Logo for tanaschita.com

Learn to debug iOS features that require app start from external actions in Xcode

How to debug features like deep linking or home screen quick actions.

27 Jan 2025 · 2 min read

Debugging iOS features that require app starts from external actions - such as deep linking or home screen quick actions - can be challenging. By default, when running an app in Xcode, the debugger automatically attaches itself. However, once the app is killed on the simulator or device, the debugger detaches, making it difficult to test features that require the app to be launched from an external action.

Xcode offers a solution: the "Wait for executable to be launched" scheme option. This allows us to attach the debugger to the app even when launching it manually.

Sponsorship logo
Architecture & Design Patterns for iOS
This book is a practical guide to essential architectural principles and design patterns for iOS development. It covers strategies for building maintainable apps with Swift and SwiftUI, including dependency injection, navigation, common patterns, and modularization.
LEARN MORE

Steps to enable the debugger for manual launch

To activate the Wait for executable to be launched feature:

  1. Edit the scheme:
  1. Enable the setting:
  • Under the Info tab in the Launch section, select the option: "Wait for executable to be launched".
  1. Run the app:
  • Start running the app in Xcode. The app won’t automatically launch as it typically does. Instead, Xcode will pause and wait for us to manually launch the app from the simulator or device.

Debugging Features After Manual Launch

Once the app is manually launched, Xcode will automatically attach the debugger. This setup is especially useful for testing:

  • Deep Linking / Universal Links: Tap a deep link to launch the app and verify the flow.
  • Home Screen Quick Actions: Trigger an action and ensure the app behaves as expected.

By keeping the debugger attached during these scenarios, we can use breakpoints, inspect variables, and view console logs to diagnose any issues.

Sponsorship logo
Preparing for a technical iOS job interview
Preparing for a technical iOS Job Interview with over 300 questions & answers. Covering Swift & Objective-C, SwiftUI & UIKit, Combine, HTTP Networking, iOS File System, Core Data, Concurrency with async/await, Security, Automated Testing, Dependency Management, AI & Machine Learning and more.
LEARN MORE
Sponsorship logo
Architecture & Design Patterns for iOS
This book is a practical guide to essential architectural principles and design patterns for iOS development. It covers strategies for building maintainable apps with Swift and SwiftUI, including dependency injection, navigation, common patterns, and modularization.
LEARN MORE
Sponsorship logo
Become a sponsor of tanaschita.com
By publishing an article on different iOS topics every week, tanaschita.com is constantly growing in the developer community and may provide a great audience for you as a sponsor.
CLICK TO LEARN MORE

Newsletter

Image of a reading marmot
Subscribe

Like to support my work?

Say hi

Related tags

Articles with related topics

lldb

testing

xcode

ios

Changing runtime state with LLDB while debugging iOS apps

Learn how to use LLDB's expr command to modify variables at runtime.

30 Mar 2026 · 5 min read

Latest articles and tips

© 2026 tanaschita.com

Privacy policy

Impressum