Autosana Logo
    Autosana
    • SandboxesBeta
    • Enterprise
    • Pricing
    Contact salesTry for free
    Resources

    Blog

    Insights on automated testing and QA best practices.

    BlogProduct updatesCase studies
    AllComparisonsBest ToolsMobile TestingAI TestingTesting Fundamentals

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.

    Autosana Logo
    Autosana
    • SandboxesBeta
    • Enterprise
    • Pricing
    Contact salesTry for free
    Written by
    Read time
    Published
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.

    Autosana Logo
    Autosana
    • SandboxesBeta
    • Enterprise
    • Pricing
    Contact salesTry for free
    Back to Blog
    Blog

    Crash on launch in the cloud: reading the crash log without Xcode

    Debug a crash log from a cloud iOS Simulator or Android emulator: find FATAL EXCEPTION in logcat, symbolicate with dSYMs and atos, and tie it to the UI step.

    Written by
    Yuvan Sundrani
    Read time
    11 min read
    Published
    December 1, 2026
    Crash on launch in the cloud: reading the crash log without Xcode

    Key Takeaways

    • Android writes every uncaught Java crash as FATAL EXCEPTION: <thread> under the AndroidRuntime tag, and the lowest Caused by: is usually the real cause.
    • On iOS, the crash report's Triggered by Thread and Exception Type tell you which thread died and how, before you read a single frame.
    • A Swift runtime trap shows as EXC_BREAKPOINT (SIGTRAP) on Apple silicon and EXC_BAD_INSTRUCTION (SIGILL) on Intel hosts, simulators included.
    • atos only gives correct lines when the dSYM's build UUID matches the binary's, so archive dSYMs per uploaded build.
    • Migration crashes appear only on an upgrade in place, so a clean install on every run can hide them.

    To debug a crash on a device you can't attach a debugger to, work from the crash log: find the first fatal line, symbolicate its frames, then tie it to the UI step that ran just before.

    Android crash on launch in logcat

    In AOSP's RuntimeInit.java, the uncaught-exception handler logs under the tag AndroidRuntime and builds the message as FATAL EXCEPTION: <thread name>, then Process: <name>, PID: <pid>.

    The logcat reference documents a separate crash buffer and the tag:priority filter syntax:

    adb logcat -c                       # clear, then reproduce
    adb logcat -b crash -d              # dump only the crash buffer
    adb logcat -d 'AndroidRuntime:E' '*:S'   # or: only AndroidRuntime errors

    Quote the *:S filter. Some shells expand *, and the logcat docs call that out. A trimmed example of what you're looking for:

    E AndroidRuntime: FATAL EXCEPTION: main
    E AndroidRuntime: Process: com.example.app, PID: 4127
    E AndroidRuntime: java.lang.RuntimeException: ...
    E AndroidRuntime:   at android.app.ActivityThread...
    E AndroidRuntime: Caused by: java.lang.IllegalStateException: ...
    E AndroidRuntime:   at com.example.app.data.AppDatabase...

    Read it bottom up. The top exception is often a framework wrapper; the lowest Caused by: is where your code threw, and the first frame in your own package is the line to open. If the thread name isn't main, the crash came from a background thread, which changes where you look for the race.

    • Release builds with R8. Frames read a.b.c. You need that build's mapping.txt to retrace them, so store it beside the APK you uploaded.
    • Native crashes. There's no Java exception, just a line of asterisks and a backtrace. Google's ndk-stack guide symbolizes it with ndk-stack -sym <unstripped-libs-dir> -dump crash.txt, and warns that the *** *** *** header line has to be included or the tool won't parse it.

    On a cloud emulator, autosana sandbox logs --since 4 --grep "FATAL" returns the same lines from step 4 onward, so you start at the failing step without scrolling the boot log.

    An annotated Android crash: FATAL EXCEPTION: main marks the thread that died, the Process line names the app and PID, and the lowest Caused by line with the first frame in your own package is the root cause
    Every crash, tied to its step. Try Autosana for free.

    iOS Simulator crash log fields

    Since iOS 15, crash reports are JSON in .ips files. Apple's format guide maps two fields you want first: faultingThread, the index of the thread that crashed, and triggered: true on that thread, which appears in a translated report as Triggered by Thread. Read those before any frame.

    Then read Exception Type. Apple's guide to common crashes gives the patterns:

    Review noteWhat changedWhere
     
    Headings as search queriesRenamed 5 H2s to the phrases people searchBody H2s
    Plain, descriptive wordingCapabilities rewritten as numbered points with a paragraph each; "flows" explained as tests written as instructions, with an exampleAutosana section
    Autosana in first personAutosana now speaks as "we" and "our"; other vendors stay third personWhole post
    Clear Autosana sectionRebuilt as "Autosana for ..." with key features, screenshot and customer resultsAbove "Where Autosana fits less well"
    Dashboard screenshotsAdded 1 dashboard screenshot (run viewer) with one-line captionsAutosana section
    Where Autosana fits less wellAdded a short first-person sectionAbove "Why use Autosana"
    Why use Autosana sectionAdded 4 to 6 reasons tied to this post's problemAbove the CTA
    Numbered FAQsFAQ headings numbered 1 to 6FAQs
    Third-person mentionsSandbox docs and evidence lines switched to "our"Launch crashes section, Conclusion

    On an Intel-hosted cloud simulator, a force unwrap that reports SIGTRAP on an Apple silicon laptop reports SIGILL, so a crash filter needs both signals.

    Apple's field reference lists Termination Reason as the place for an invalid code signature, a missing dependent library, or privacy-sensitive access without a purpose string. These causes often leave no app frame at the top of the stack, so read the field before the backtrace.

    How to symbolicate a crash log with atos

    Symbolication needs the dSYM from the exact build that crashed. Apple's symbolication guide gives the atos form:

    # 1. prove the symbols belong to this binary
    dwarfdump --uuid MyApp.app/MyApp
    dwarfdump --uuid MyApp.app.dSYM

    # 2. symbolicate one address with the binary's load address
    atos -arch arm64 \
      -o MyApp.app.dSYM/Contents/Resources/DWARF/MyApp \
      -l 0x104000000 -i 0x104e2d4c0

    The load address comes from the Binary Images section of the report.

    Apple's guide on missing debug symbols states that a binary and its dSYM are compatible only when their build UUIDs match. A dSYM from a rebuild of the same commit has a different UUID, and atos will hand back a plausible, wrong line.

    • Build what you upload with a dSYM. Debug configurations often default to DWARF without a separate dSYM; set DEBUG_INFORMATION_FORMAT = dwarf-with-dsym for the build you send to the cloud.
    • Archive by UUID. Store the dSYM next to the .app or .ipa you uploaded, keyed by UUID. mdfind "com_apple_xcode_dsym_uuids == <UUID>" finds one Spotlight already indexed.

    For a whole report, xcrun crashlog <report.ips> symbolicates every frame it can match.

    Common crash on launch errors after a new build

    What the log saysPlatformLikely causeCheck
     
    TurboModuleRegistry.getEnforcing(...): 'X' could not be foundReact NativeNew JS calling a native module the binary doesn't containRebuild and reinstall the native app
    Cannot find native module 'X'ExpoSame, for an Expo moduleRebuild the development build
    Termination Description: DYLD, dependent dylib ... not foundiOSA framework linked but never embeddedThe target's Embed Frameworks phase
    IllegalStateException from Room on openAndroidSchema version bumped with no migration pathUpgrade in place from the previous build

    The React Native and Expo rows usually come from hot reload: Metro serves the new JavaScript to the old native binary, the JS asks for a module that only exists in the next build, and the app dies at import time.

    Our sandbox docs draw the same line: saved JS changes hot reload through the forwarded Metro port, and native changes still need autosana sandbox upload <path>.

    Room's migration docs say an IllegalStateException occurs when it can't find a migration path for an existing database. A clean install has no existing database, so a pipeline that wipes the app before every run never sees it.

    Test the upgrade on purpose: install the last release, open it once, then install the new build over it. In a sandbox, autosana sandbox upload <path> installs over the current app, and only --reset installs clean. Real devices always install clean, so run upgrade checks on simulators and emulators.

    A crash matched to its UI step: steps 1 to 5 of an onboarding flow run, step 6 taps Continue and the app exits, logs from step 4 onward hold the FATAL line, and a cold launch replays steps 5 and 6 to confirm a deterministic repro

    Crash reproduction from the UI step that caused it

    Launch crashes often depend on state from earlier steps: a flag set on screen two, a permission denied on screen three. Keep the step list next to the log. On an Autosana sandbox every action waits for the screen to settle and saves a screenshot, and the log, network and performance commands all take --since <step>:

    autosana sandbox logs --since 4 --grep "SIGABRT"   # the crash window only
    autosana sandbox video --last 30s                   # what the screen did
    autosana sandbox launch --cold                      # restart, then replay steps 5 and 6

    The cold launch is the reproduction. If steps 5 and 6 crash again from a cold start, you have a deterministic repro and a two-step test for the fix. If they don't, the crash depends on state from steps 1 to 4, and that's your next lead.

    After a sandbox ends, autosana sandbox logs --sandbox <id> still shows what it kept, step by step, so a crash from an overnight agent run is still readable in the morning. The kept log is the app's own.

    Autosana for crash debugging on cloud devices

    Autosana is an AI end-to-end testing agent for iOS, Android and web apps. For crashes, we keep the step, the log and the video together, both in the sandboxes a coding agent drives and in the tests that run on every pull request.

    Autosana key features for crash triage

    1. Logs indexed by step. In a sandbox, autosana sandbox logs --since 4 --grep "FATAL" returns the app log from step 4 onward, next to that step's screenshot. After the sandbox ends, logs --sandbox <id> still shows what it kept, so an overnight crash is readable in the morning.
    2. Issues that cite the failing action. Our tests are written as instructions, for example "Complete onboarding with the test account and check that the home screen loads." When one fails, our Autosana issues mark it critical, point to the action where it happened with a screenshot, and group repeats across runs and builds with first and last seen.
    3. Crash results on the pull request. Our GitHub app runs the relevant tests on each PR's build and posts the results with videos, so a launch crash shows up before merge. How agents check their own UI changes first is covered in mobile UI verification for coding agents.
    Agent steps from a cloud run with a flagged issue pinned to the exact step where it appeared
    An issue our agent flagged, pinned to the step where it happened, with each step's action and timestamp. Source: Autosana GitHub Bot docs video.

    An issue our agent flagged, pinned to the step where it happened, with each step's action and timestamp. Source: Autosana GitHub Bot docs video.

    Autosana customer results

    • Gobi (social maps app): nightly runs caught six real bugs in five days after replacing 13 brittle Maestro tests with 30+ Autosana tests. See the Gobi case study.
    • Ziina (UAE financial platform): automated 69% of its E2E suite and cut active manual regression from about 12 hours across two days to about 1 hour.

    A crash that turns out to be a blank screen is often networking; Android emulator localhost on cloud devices covers that case.

    Where Autosana fits less well

    • We don't replace a debugger. Stepping through frames still happens on your machine, and the dSYM archive and atos step belong in your build pipeline.
    • On a real iPhone, performance data and the screen recording arrive after the session ends.
    • We don't run existing Espresso or XCTest bundles; our tests are written as instructions.
    • Games drawn by an engine into one canvas are a poor fit for screenshot-driven steps.

    Why use Autosana for crash debugging on cloud devices?

    • The crash arrives with its step. The screenshot, log window and video belong to the action that triggered the crash.
    • Logs outlive the device. A sandbox's kept logs stay readable after it ends.
    • A cold-launch replay confirms the repro. autosana sandbox launch --cold restarts the app so the last steps run again from a fresh process.
    • Migration crashes become testable. upload without --reset installs over the current app, which is where those crashes live.
    • Launch crashes show up before merge. The PR comment carries the video of the failing run.
    Debug crashes without Xcode. Try Autosana for free.

    Conclusion

    How fast a cloud crash gets resolved comes down to three things set up before it happens:

    • Symbols per uploaded build. dSYMs keyed by UUID, and mapping.txt beside every R8 APK.
    • An upgrade-in-place run before release. A clean install hides migration crashes.
    • Step-indexed logs and video. The crash arrives with the screen that triggered it. Our sandboxes and tests record both on every run.

    For finding crashes before release more broadly, see mobile app crash testing.

    For logs from a phone on your desk, see viewing device logs on iPhone and Android.

    FAQs

    1. How do I find an Android crash in logcat?

    Search for FATAL EXCEPTION under the AndroidRuntime tag, or dump the crash buffer with -b crash.

    2. Where do iOS crash reports show which thread crashed?

    The Triggered by Thread field, from faultingThread in the .ips JSON, marks it.

    3. Why does atos return the wrong line?

    The dSYM likely comes from a different build. Compare UUIDs with dwarfdump --uuid first.

    4. Why does a Swift crash show SIGILL on some simulators?

    Intel hosts report Swift runtime traps as SIGILL. Apple silicon reports SIGTRAP.

    5. Why does my React Native app crash after hot reload?

    New JavaScript is calling a native module the installed binary lacks. Rebuild and reinstall.

    6. Can Autosana show which step crashed the app?

    Yes. Sandbox logs take --since <step>, and flow issues cite the failing action.

    Sources

    • Android Developers: Logcat command-line tool
    • Apple Developer: Adding identifiable symbol names to a crash report

    ‍

    Fix bugs, not tests.

    Talk to an expert.

    Book 30 minutes with our team. We'll show you Autosana running on your app.

    Contact sales

    Start building.

    Describe a user journey and watch an agent run it on iOS, Android, and web.

    Try for free
    Autosana

    Catch bugs before your users do.

    Try for free

    Product

    • Platform
    • Use cases
    • Enterprise
    • Pricing

    Resources

    • Docs
    • Case Studies
    • Product Updates
    • Blog

    Company

    • Contact sales
    • Careers
    • LinkedIn

    Trust

    • Status
    • Security
    • SOC 2 Type 1 · Type 2 in review
    • Backed by

    © 2026 Autosana. All rights reserved.