> For the complete documentation index, see [llms.txt](https://docs.bugsplat.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bugsplat.com/sdks/game-development/unity/symbol-upload.md). Agents can also search and read this documentation through its [MCP server](https://docs.bugsplat.com/~gitbook/mcp).

# Unity Symbol Upload

BugSplat for Unity uploads [symbol files](https://docs.bugsplat.com/guides/working-with-symbol-files.md) as a post-build step, so crash reports symbolicate to function names, file names, and line numbers. Which files are uploaded, and the option that turns the upload on, is covered on each platform's page: [Windows](https://docs.bugsplat.com/sdks/game-development/unity/windows.md#windows-symbols), [macOS](https://docs.bugsplat.com/sdks/game-development/unity/macos.md#macos-symbols), [iOS](https://docs.bugsplat.com/sdks/game-development/unity/ios.md#ios-symbols), and [Android](https://docs.bugsplat.com/sdks/game-development/unity/android.md#android-symbols).

The upload runs the [symbol-upload](https://docs.bugsplat.com/guides/working-with-symbol-files/upload-symbols-with-symbol-upload.md) CLI, pinned to v11.1.0. The post-build step and the iOS Xcode build phase download it from GitHub and check its SHA-256 before running it; a binary that doesn't match fails the upload with an error.

### Credentials

The upload authenticates with an OAuth2 [Client ID and Client Secret](https://docs.bugsplat.com/api-reference/oauth2.md#client-credentials), generated on BugSplat's [Integrations](https://app.bugsplat.com/v2/database/integrations) page. Credentials are **specific to one database** and are never stored in your project — an asset carrying them would end up in version control and inside shipped builds. They resolve in this order:

1. **`SYMBOL_UPLOAD_CLIENT_ID` / `SYMBOL_UPLOAD_CLIENT_SECRET` environment variables** — use these in CI. They are the names the [symbol-upload](https://docs.bugsplat.com/guides/working-with-symbol-files/upload-symbols-with-symbol-upload.md) CLI reads, so the same pair works whether Unity runs the upload or your CI runs `xcodebuild` itself.
2. **`~/.bugsplat/credentials/<database>.sh`** — for local development. Set it from **Tools > BugSplat > Symbol Upload > Set Credentials**, which writes one file per database, so a machine can hold credentials for as many databases as you work with.

**Clear Credentials** deletes the current project's file, and **Check Credentials** reports which source a build would use. When neither source supplies both values, symbol upload is skipped with a warning and the build still succeeds — on iOS as an Xcode build warning, since that upload runs during the Xcode build rather than the Unity one.

Because the file lives in your home directory rather than the project, there is nothing to add to `.gitignore` and nothing to strip out of a build.

### Environment Variables

| Variable                      | Description                                                                                                                                                          |
| ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `SYMBOL_UPLOAD_CLIENT_ID`     | OAuth2 Client ID from the [Integrations](https://app.bugsplat.com/v2/database/integrations) page. Takes precedence over `~/.bugsplat/credentials/<database>.sh`.     |
| `SYMBOL_UPLOAD_CLIENT_SECRET` | OAuth2 Client Secret from the [Integrations](https://app.bugsplat.com/v2/database/integrations) page. Takes precedence over `~/.bugsplat/credentials/<database>.sh`. |

{% hint style="warning" %}
**Upgrading from 4.x:** `SymbolUploadClientId` and `SymbolUploadClientSecret` have been removed from `BugSplatOptions`, and the environment variables are renamed from `BUGSPLAT_CLIENT_ID`/`BUGSPLAT_CLIENT_SECRET`. Move your credentials to the menu or the new variables. **If an options asset holding credentials has ever been committed, rotate them** — prior versions serialized both values into player builds and into the generated `project.pbxproj`.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bugsplat.com/sdks/game-development/unity/symbol-upload.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
