Skip to main content
In CI, give the apsio CLI your project’s upload token through the APSIO_TOKEN environment variable, kept in your CI provider’s secrets. Never pass it as a command-line flag: flags show in logs and in the process list.

After an archive

With APSIO_TOKEN set, apsio upload dsyms needs nothing else. If your archive step runs the Xcode build phase, it uploads already; the second command then finds every file on the server and uploads nothing.

GitHub Actions

The Apsio/upload-symbols action installs a CLI release (checked against its checksum) and uploads what you give it:
For Android and React Native, give it the build’s id and the files, one per line:
Its other inputs are sourcemaps with bundle and bundle-id, symbols-url (where uploads go, for a self-hosted or staging symbols server), dry-run (no token needed) and version; its report output is the path of a JSON file with each command’s report. The step fails with the first failing command’s exit code. See the action’s README. With the CLI installed some other way, a plain step does the same:

fastlane

The apsio_upload_symbols action comes in a plugin kept with the CLI. Add it to fastlane/Pluginfile and run bundle install:
The tag is the CLI release the plugin comes with. With the CLI installed on the machine and APSIO_TOKEN in the lane’s environment, it uploads the archive gym just built:
Name the files instead with dsyms:, or for Android build_id: with mappings: and ndk:; with only build_id:, it takes the mappings gradle wrote in the lane. It fails the lane on a failed upload; fail_on_error: false makes that a warning. For a self-hosted or staging server, symbols_url: (or APSIO_SYMBOLS_URL) is where uploads go. See the plugin’s README.

Storing the token for later steps

When several steps call the CLI, store the token once. --with-token reads it from standard input, so it never appears in the command line:
apsio login checks the token against the server before it stores it; it exits with code 3 when the server refuses it.

Exit codes in CI

apsio upload dsyms --json prints a report your pipeline can read. See Upload dSYMs.