critical · M8 · MASVS-CODE-1 · PTKD-RT-CRASH-ON-LAUNCH

    App crashes on launch

    The app was installed and opened on a clean device and did not stay running: it crashed or was closed within seconds. Both stores reject builds that crash on launch.

    How it is exploited

    The release build reads an API key from a file that only exists on the developer's machine. On a clean device the first screen throws, the app closes, and the reviewer rejects it within a minute.

    Why it matters

    Every new user sees a crash; both stores reject the build.

    How to fix it

    1. Install the exact release build on a clean device or emulator and open it.
    2. Read the crash log (logcat -b crash, or the Xcode Organizer / device log).
    3. Fix the startup path, then test again with no network and with a fresh install.

    Does your app have this?

    PTKD checks your build or your source project for PTKD-RT-CRASH-ON-LAUNCH and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M8)