How to see iOS Simulator console logs in Xcode, Terminal and Console.app
Codemia Knowledge Hub ·
The quickest way to see iOS Simulator console logs is Xcode's debug console, which appears when you run the app with Cmd + R (open it with Cmd + Shift + C). For advanced filtering, stream logs in Terminal with xcrun simctl spawn booted log stream, or open the macOS Console app. Each fits a different workflow, from quick print() checks to structured log analysis.
Method 1: Xcode debug console
This covers most debugging.
Opening the console in Xcode
- Open the project in Xcode and pick an iOS Simulator as the run destination.
- Run the app with
Cmd + R. - Show the console with
Cmd + Shift + CorView > Debug Area > Activate Console.
The console sits at the bottom of the Xcode window and updates in real time.
What the console shows
It captures output from:
NSLog() writes to the system log with a timestamp and process identifier, while print() writes only to stdout. Both show in the Xcode console, but only NSLog() output appears in the macOS Console app.
Filtering console output
The filter bar at the bottom of the console narrows output by keyword, and toggle buttons switch between your app's output and all process output.
For structured filtering, log with the os framework instead of print():
These entries carry severity levels that Xcode can filter by category and type.
Method 2: Terminal with xcrun simctl
simctl gives you the simulator's log stream from the command line, useful for capturing logs without Xcode or applying complex filters.
List booted simulators
This shows only running simulators with their UDIDs.
Stream logs in real time
This streams everything from the booted simulator. It is verbose, so filter it.
Filter by process name
Filter by subsystem and category
If your app uses the os logging framework:
Filter by message content
Output styles
Method 3: macOS Console app
Console.app (Applications > Utilities > Console) is a graphical browser for logs from all processes, simulators included.
- Open Console.app.
- In the left sidebar, find the simulator in the devices list. Booted simulators appear by name.
- Click it to view its log stream.
- Use the search bar to filter by your app's bundle identifier or keywords.
It is especially useful for logs from system frameworks your app interacts with, such as networking, push notifications or background task scheduling, which don't show in the Xcode console.
Method 4: Reading past logs
For crashes or issues that already happened, read historical logs:
Collecting a log archive
To share logs or attach them to a bug report:
Open the .logarchive file in Console.app for a full browsable view.
Which method to use
| Method | Real-time | Historical | Filtering | Best for |
| Xcode Console | Yes | No | Basic text filter | Day-to-day development |
xcrun simctl log stream | Yes | No | Predicate-based (powerful) | Advanced filtering, headless CI |
xcrun simctl log show | No | Yes | Predicate-based (powerful) | Post-crash analysis |
| macOS Console.app | Yes | Yes | GUI search bar | System-level log inspection |
Logging that is easier to read in the simulator
Use os.Logger instead of print()
The os framework gives structured output with severity levels, subsystem grouping and automatic redaction of sensitive data in release builds:
privacy: .private redacts the value in non-debug builds, so sensitive data doesn't leak into production logs.
Add signpost intervals for performance
Signpost intervals show up in Instruments and help you line up log output with performance traces.
Why logs go missing
- Relying only on
print(). It doesn't write to the system log, so its output is gone when the Xcode session ends and Console.app orlog showcan't retrieve it. Useos.LoggerorNSLog()for anything you may need later. - Not filtering
simctl log stream. Without a--predicateon your app's process, system output overwhelms you. - Expecting the Xcode console to show all system logs. It shows only stdout/stderr from your process and
oslog output at the default level or above. Framework logs, kernel messages and other processes need Console.app orsimctl. - Running
simctl spawn bootedwith no simulator booted. You get "No devices are booted." Check withxcrun simctl list devices bootedfirst. - Heavy
NSLog()in production code. It does synchronous I/O and adds overhead. Keep it to debug builds or move toos.Logger, which is built for high-performance logging.
Related reading
- How can I get the font size and font name of a UILabel?
- How can I get the height and width of an uiimage?
- How can I get the iOS 7 default blue color programmatically?
- How can I import Swift code to Objective-C?
- How can I get the current stack trace in Java?
- How can I gracefully handle a Kafka outage?
- How can I increase the Tap Area for UIButton?
- How can I launch Safari from an iPhone app?
.png&w=3840&q=75)
Tackling System Design Interview Problems
A short course that equips you with the skills to approach system design interviews methodically.
Start the free courseNo course covers this one yet
Basis Lab writes one for you from a sentence about what you want to be able to do, then teaches it and checks you understood. Your first course is free.
Build my courseData Structures & Algorithms practice on Codemia
Step through 300+ coding interview problems with animated visualisers that show the data structure changing as the code runs. The Blind 75 are free.