Quick answer: Termination code 0x8badf00d is the iOS watchdog: your game’s main thread took too long, in wall-clock time, to draw its first frame (scene-create) or to respond afterwards (scene-update), so the system killed it. Games hit it by loading scenes, warming shaders, calling the network or initialising SDKs synchronously at startup. Present a loading screen frame first, make everything else asynchronous, and test cold launches without Xcode attached, because the watchdog is off under the debugger.
Players call it “crashes on the loading screen”, and it is worse on older phones. Nothing in your code actually crashed. The system gives an app a limited amount of real time to put a frame on screen and to keep answering events, and when a game spends that time loading a scene or waiting for a server on its main thread, iOS ends the process. You never see it in development because the watchdog does not run when Xcode launches the app. This guide covers the report, what the watchdog counts, why games run over, and how to restructure startup, resume and saving.
- The exact error
- What the watchdog measures
- Reading the termination text
- Other termination codes that look similar
- Why games hit it
- Find what the main thread was doing
- Fix 1: show a frame first, then load
- Fix 2: take network and disk waits off the main thread
- Fix 3: spread shader warm-up and SDK start-up across frames
- Fix 4: make backgrounding cheap
- Unreal and Godot notes
- How to test for it
- What Bugnet sees of a watchdog kill
- Related guides
- Frequently asked questions
The exact error
On recent iOS versions the crash report looks like this (invented values, made-up bundle ID):
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: FRONTBOARD 2343432205
<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<com.studio.mygame>:1052 exhausted real (wall clock) time allowance of 19.97 seconds
ProcessVisibility: Foreground
ProcessState: Running
WatchdogEvent: scene-create
WatchdogVisibility: Foreground
WatchdogCPUStatistics: (
"Elapsed total CPU time (seconds): 31.280 (user 22.150, system 9.130), 26% CPU",
"Elapsed application CPU time (seconds): 18.940, 16% CPU"
) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread: 0
Older reports carry the same information in two lines:
Termination Reason: Namespace SPRINGBOARD, Code 0x8badf00d
Termination Description: SPRINGBOARD, scene-create watchdog transgression: application<com.studio.mygame>:1052 exhausted real (wall clock) time allowance of 19.97 seconds | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | ...
2343432205 is 0x8badf00d in decimal. The exception type is EXC_CRASH (SIGKILL) because the process was killed from outside. It did not fault, so there is no exception address and no managed exception in your engine’s log.
What the watchdog measures
Apple’s description is that the system monitors launch times and app responsiveness and terminates apps that block the main thread for a significant time. Two events matter to a game:
scene-create: the app did not render its first frame to the screen within the allowed time after launch.scene-update: the app was running but did not update its UI quickly enough because the main thread was busy. This is the one you get when resuming from the background or when moving to it.
Despite the names, these have nothing to do with UIScene, and nothing to do with a Unity scene either. “Scene” here means content drawn to the screen.
The allowance is real elapsed time, not CPU time. Apple does not publish fixed limits. The figures that appear in reports are close to 20 seconds for scene-create and 10 seconds for scene-update, and the report itself states the allowance that applied, so read it from there instead of designing to a number. Lifecycle callbacks have their own budget: UIKit’s documentation gives applicationDidEnterBackground approximately five seconds to return before the app is terminated.
Because the clock is the wall clock, anything that slows the device counts against you: an older CPU, thermal throttling, Low Power Mode, a phone busy after a restart or an OS update, slow storage that is nearly full. A launch that takes 6 seconds on your development phone can take 25 on a six-year-old one.
Reading the termination text
| Field | Meaning |
|---|---|
WatchdogEvent | scene-create (first frame at launch) or scene-update (unresponsive later) |
time allowance of N seconds | The budget that was exceeded, in wall-clock seconds |
ProcessVisibility | Whether the app was in the foreground or background when it was killed |
Elapsed total CPU time | CPU used by every process on the device during that window. The percentage is across all cores, so it can exceed 100%. |
Elapsed application CPU time | CPU used by your process, all threads together, during that window |
The application CPU time is the first clue. If it is close to the allowance, as in the example (18.9 of 19.97 seconds), your game was computing the whole time: loading, decompressing, compiling shaders. If it is near zero, the main thread was waiting on something: a network reply, a lock, the disk. If total CPU is high and yours is low, the device was busy with other work and your launch was merely too slow to survive it.
Other termination codes that look similar
Several other SIGKILL reports look similar at a glance. The codes below are from Apple’s documentation:
| Code | Meaning | Typical game cause |
|---|---|---|
0x8badf00d | The watchdog terminated the app | Main thread blocked at launch, resume or suspend |
0xdead10cc | The app held a file lock or SQLite database lock during suspension | A save or analytics database write still in progress when the game was backgrounded |
0xc00010ff | Terminated because of a thermal event | Sustained heavy load on a hot device; sometimes just the device or its surroundings |
0x2182bad2 | A background task failed to complete in time | beginBackgroundTask without a matching endBackgroundTask |
0xd00d2bad | Excessive use of key system resources | Too much parallel work started at once |
0xbaadca11 | A PushKit notification was not reported as a CallKit call | Rare in games; a voice chat SDK |
Out-of-memory kills are different again: they have no code like these and usually no crash report in this format. See jetsam out-of-memory terminations. A report with EXC_BAD_ACCESS is a real fault, covered in the EXC_BAD_ACCESS guide.
Why games hit it
- The first scene loads synchronously before any frame is shown. A large first scene, a bootstrap object that calls
Resources.Loadon half the game,AssetBundle.LoadFromFilefollowed byLoadAllAssets, or Addressables calls finished withWaitForCompletion()inAwake. - Shader warm-up on the main thread at startup.
Shader.WarmupAllShaders(), a big shader variant collection in the Preloaded Shaders list, or an Unreal pipeline cache compiled in one blocking batch. Metal has to build a pipeline state for each one. - First-run work. Unpacking or copying data out of the app bundle, migrating a save format or a database, building a cache. It only happens on the launch after an install or update, which is why the reports cluster right after a release.
- Synchronous network calls. Remote config, login, entitlement or receipt checks made before the first frame, with a busy-wait or
.Resulton the main thread. On a bad connection a single request can take longer than the whole allowance. - SDK initialisers. Ads mediation, analytics, attribution, crash and consent SDKs all initialised one after another in the first frame or in the app delegate. Each is acceptable alone.
- Slow work when the game is backgrounded. Serialising and writing a large save inside
OnApplicationPause(true)orapplicationDidEnterBackground. - Heavy work on resume. Reloading assets or re-authenticating synchronously when the game returns to the foreground.
- A main-thread deadlock. The main thread waits for a worker that is itself waiting to run something on the main thread. Application CPU time is near zero and the kill arrives exactly at the allowance.
Find what the main thread was doing
The report includes a backtrace of every thread at the moment of the kill. Symbolicate it with the build’s dSYM (how to symbolicate with a dSYM) and read Thread 0, the one named com.apple.main-thread. Unity runs its player loop, and therefore your scripts, on this thread.
semaphore_wait_trap,__psynch_cvwaitor__psynch_mutexwaiton top: the thread is waiting. Read down to see for what: networking frames mean a synchronous request, and your own lock or task frames mean a deadlock. Then check the other threads for the one holding what it wants.read,preadoropen: blocking disk I/O.- Decompression or engine loading functions under your startup code: synchronous asset loading.
- Metal pipeline creation (
newRenderPipelineStateWithDescriptor:error:) under engine shader code: shader warm-up. - An SDK’s framework name: that SDK’s initialiser.
One report is a snapshot. Apple cautions that the main thread’s backtrace does not always contain the source of the problem, since the time may have been spent earlier and the kill just happened to land on something innocent. Collect several reports. If they all stop in the same place, that call is the blocker. If they are spread across your startup sequence, the launch is simply too long in total.
Fix 1: show a frame first, then load
Make the first scene nearly empty: a camera, a logo, a progress bar. Let it render, then load the real content asynchronously. In Unity:
public class Boot : MonoBehaviour
{
[SerializeField] Slider progressBar;
IEnumerator Start()
{
yield return null; // let the first frame reach the screen
var load = SceneManager.LoadSceneAsync("MainMenu");
while (!load.isDone)
{
progressBar.value = load.progress;
yield return null;
}
}
}
Keep Awake, Start and any [RuntimeInitializeOnLoadMethod] code that runs for the boot scene free of loading and I/O. With Addressables, use Addressables.LoadSceneAsync and LoadAssetAsync and yield on the handle instead of calling WaitForCompletion(). Spread first-run unpacking over many frames or do it on a background thread, with the loading screen animating the whole time. What matters after the first frame is that the main thread keeps returning to the run loop. A progress bar that still animates proves it does; one frozen for 15 seconds proves it does not.
Fix 2: take network and disk waits off the main thread
// Broken: spins the main thread until the server answers.
var req = UnityWebRequest.Get(configUrl);
req.SendWebRequest();
while (!req.isDone) { }
// Also broken: blocks the main thread, and deadlocks if the task
// needs the main thread to finish.
var config = FetchConfigAsync().Result;
// Fixed: yield while the request runs, give it a timeout, fall back to cached values.
IEnumerator LoadConfig()
{
using var req = UnityWebRequest.Get(configUrl);
req.timeout = 10;
yield return req.SendWebRequest();
ApplyConfig(req.result == UnityWebRequest.Result.Success
? req.downloadHandler.text
: cachedConfig);
}
No network result should gate the first frame. Start with the last known config and apply the fresh one when it arrives. In native code, Apple’s advice is the same: use asynchronous URLSession calls, or at minimum run synchronous networking on a secondary thread.
Fix 3: spread shader warm-up and SDK start-up across frames
Remove large collections from the Preloaded Shaders list in Project Settings > Graphics and warm them in slices while the loading screen is visible:
IEnumerator WarmUp(ShaderVariantCollection variants)
{
while (!variants.WarmUpProgressively(8)) // true once everything is warmed
yield return null;
}
Treat SDKs the same way. Initialise them after the first frame, one per frame or on the asynchronous path each vendor documents, and start with the ones the menu actually needs. Time each initialiser on your slowest device before deciding the order.
Fix 4: make backgrounding cheap
The pause callback is not the place to build a save file. Serialise during play, on a worker thread, whenever the state changes meaningfully, so that when the game is backgrounded there is at most a small write left. Finish database transactions and close file locks before returning, or the next kill will be 0xdead10cc.
If you write native plugin code, ask for extra time first and do the work off the main thread, as UIKit’s documentation describes:
var task: UIBackgroundTaskIdentifier = .invalid
task = UIApplication.shared.beginBackgroundTask(withName: "save") {
UIApplication.shared.endBackgroundTask(task)
task = .invalid
}
DispatchQueue.global(qos: .utility).async {
writeSave()
DispatchQueue.main.async {
UIApplication.shared.endBackgroundTask(task)
task = .invalid
}
}
Every beginBackgroundTask needs its endBackgroundTask, including in the expiration handler.
Unreal and Godot notes
Unreal. Hard references decide what loads before the first frame. Assets found with ConstructorHelpers::FObjectFinder in class constructors load when class default objects are created at engine start, and a GameInstance or default map with hard references to the whole game drags it all in. Use TSoftObjectPtr and load through FStreamableManager::RequestAsyncLoad, keep the startup map tiny, and play a startup movie or loading screen while the rest streams in. Detecting hangs in an Unreal game covers finding game-thread stalls in general.
Godot. Autoloads are created before the main scene, and preload() loads its resource when the script loads, so a main scene script that preloads every level loads every level before the first frame. Keep autoloads light, make the main scene a loading screen, and fetch the next scene with ResourceLoader.load_threaded_request(), polling load_threaded_get_status() each frame until load_threaded_get() can return it.
How to test for it
- Launch from the Home Screen, not from Xcode. Apple’s own Q&A states that when Xcode launches an application the watchdog timer is disabled, to allow for debugger overhead. Install the build, stop it, disconnect and tap the icon.
- Use the oldest device you support, after a restart so the launch is cold, with Low Power Mode on.
- Test the first-run path and the update path: a fresh install, and an update over a build with a large existing save.
- Break the network. Enable the Network Link Conditioner in the iOS Developer settings with a lossy profile, then launch. A launch that hangs here has a synchronous request in it.
- Measure. Profile with the App Launch template in Instruments. After release, Xcode’s Organizer shows Launch Time and Hang Rate metrics per version along with hang and launch reports in recent Xcode versions, and MetricKit delivers launch and hang diagnostics with call stacks from players’ devices.
Aim for the first frame within a couple of seconds on the slowest device. The watchdog allowance is the cliff, not the target.
What Bugnet sees of a watchdog kill
A watchdog termination is a SIGKILL: the game gets no chance to run a handler, so no SDK inside the process can report it. Bugnet does not capture watchdog kills or any native crash as a stack trace, and it does not symbolicate; Apple’s crash reports are the source for those. The killed session never reports its end, so it is also invisible to Bugnet’s crash-free session rate. You can count these launches yourself: write a “launch started” flag at startup, clear it once the menu is reached, and if it is still set at the next launch, log an error such as “Previous launch did not finish”. The Unity SDK files that error with the OS version, CPU, GPU, RAM and game version and groups the repeats, which shows whether older hardware dominates. A public known-issue entry can give players the workaround while the fix is in review.
Related guides
- How to Fix “EXC_BAD_ACCESS (SIGSEGV)” Crashes in an iOS Game
- How to Fix iOS Jetsam (Out of Memory) Terminations in Your Game
- How to Fix a Unity iOS Game Crashing on Launch
- How to Symbolicate an iOS Game Crash with dSYM
- How to Get Crash Logs From a Player’s iPhone or Android Phone
Frequently asked questions
What does 0x8badf00d mean in an iOS crash report?
It is the termination code for the iOS watchdog, read as ate bad food. The system killed the app because its main thread took too long to show the first frame at launch or to respond to events afterwards. Nothing in the app faulted.
How long does an iOS app have to launch before the watchdog kills it?
Apple does not publish a fixed limit. Crash reports state the allowance that applied, and values near 20 seconds for launch and 10 seconds for later updates are commonly seen. The time is wall-clock time, so slow devices use it up faster.
Why does my game only get killed on players’ devices and never in Xcode?
The watchdog is disabled when Xcode launches the app, to allow for debugger overhead. Development devices also tend to be newer and on fast networks. Launch from the Home Screen on an old device with a poor connection to reproduce it.
What is the difference between scene-create and scene-update in the report?
scene-create means the app did not draw its first frame within the allowed time after launch. scene-update means the app was already running but its main thread was too busy to update the screen. Neither refers to UIScene or to a game engine scene.
How do I fix a watchdog termination in a Unity iOS game?
Make the first scene a minimal loading screen, load the real scene with LoadSceneAsync, replace blocking network calls and WaitForCompletion with coroutines or async code, warm shaders progressively, and delay SDK initialisation until after the first frame.
The watchdog counts seconds on the wall, not work done. Put a frame on screen first and make everything after it something the main thread never has to wait for.