Skip to main content
A crash report holds addresses. Apsio turns them into function names, files and lines with the dSYMs of the build that crashed. See Symbols and dSYMs for how that works.

Before you start

  • Install the apsio CLI and store your project’s upload token with apsio login --with-token, or set APSIO_TOKEN.
  • Make sure the build produces dSYMs: in the target’s Build Settings, Debug Information Format is “DWARF with dSYM File” (dwarf-with-dsym). New Xcode projects use it for Release.

Upload

Point the CLI at an archive, a dSYM bundle or a folder:
The CLI:
  1. finds every dSYM under the paths you give: in an .xcarchive it reads the dSYMs folder, and folders are searched recursively;
  2. reads each one and keeps the Mach-O files that carry debug information;
  3. splits a file with several architectures into one upload per architecture, since each has its own UUID, the one crash reports carry;
  4. asks Apsio which UUIDs it already has, and uploads only the others, compressed.
It prints one line per file and a summary:
Uploading the same dSYMs again is cheap: files Apsio already has are skipped. --force uploads them anyway.

Check without uploading

--dry-run finds and validates the dSYMs and lists their UUID, architecture, name and path, without a token and without uploading.

Output for scripts

--json prints one JSON document on standard output and nothing else there:
found is filled by --dry-run. skipped lists files that are not usable dSYMs, with the reason. failed lists uploads that failed, with the error. See exit codes.

Upload tokens

Uploads authenticate with an upload token, which uploads symbols for one project and reads nothing. It starts with apsio_ut_v0_ and is separate from the read API’s project tokens: an upload token cannot read, and a project token cannot upload. Owners and admins create upload tokens in the console, under Settings › Symbols (Upload tokens): a name and how long it lasts. The token is shown once, when you create it; Apsio keeps only its hash and cannot show it again. Members see the list of tokens, never a token. Every creation and revocation is in the audit log.
  • Lifetime: 7, 30, 90 (the default) or 365 days. Store it as a CI secret (APSIO_TOKEN) and replace it before it expires; an expired token is refused within 30 seconds of its expiry (exit code 3). A project has at most 50 live tokens.
  • Scope: the project you created it in. Every upload made with it belongs to that project.
  • Revocation: revoke a token in the same place; uploads with it are refused within 30 seconds.

Where to find dSYMs

Upload the dSYMs of every build you ship: the App Store, TestFlight and ad hoc builds.

Frameworks bundled in the app

A crash can stop in a framework the app embeds, its own or a vendor’s. Apsio counts it as part of the app, so a framework without its dSYM shows under the release’s missing symbols, marked as a bundled framework ("kind": "framework" from GET /v1/projects/{projectId}/releases/{release}/missing-symbols, see the read API).
  • A framework built with the app (a target of the project, a Swift package or a pod built from source) gets its dSYM next to the app’s, so the same upload covers it.
  • A vendor’s prebuilt XCFramework covers itself when the vendor ships its dSYMs inside it (xcodebuild -create-xcframework -debug-symbols): Xcode copies the dSYM of the slice the app embeds into the build’s dSYM folder and into the archive, for an XCFramework added to the project, a Swift package binary target or a CocoaPods pod alike.
  • Otherwise ask the vendor for the dSYMs of the exact version you ship, and upload them:
A static framework is linked into the app’s binary, so the app’s dSYM already covers it.