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
- Install the exact release build on a clean device or emulator and open it.
- Read the crash log (logcat -b crash, or the Xcode Organizer / device log).
- 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 appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen