UPM package for the Bugsee crash and session-replay SDK on Unity (2021.3+).
This repository replaces the legacy
.unitypackage/Assets/Pluginsdistribution. The previous repo remains available as a reference foundation.
This is a beta (7.0.0-beta.1): it may have rough edges, and it has breaking changes relative to 6.x (see the
changelog). The minimum Unity version is 2021.3.
The package is installed from git, pinned to a release tag:
https://github.com/bugsee/bugsee-unity.git#v7.0.0-beta.1
Without #<tag> Unity follows the repository's default branch, which is not a release.
Package Manager. Window > Package Manager > + > Add package from git URL..., paste the URL above.
By hand. Add the dependency to Packages/manifest.json (Unity resolves it the next time the Editor has focus):
{
"dependencies": {
"com.bugsee.unity": "https://github.com/bugsee/bugsee-unity.git#v7.0.0-beta.1"
}
}A clone or another git host. Unity accepts a Git URL that ends in .git (before the optional #tag) or starts with
git+; other spellings are rejected as an invalid version. For a clone on disk, or a mirror:
file:///path/to/bugsee-unity.git#v7.0.0-beta.1
git+file:///path/to/bugsee-unity#v7.0.0-beta.1
From disk. Package Manager > + > Add package from disk..., then pick the package.json in the root of a
checkout (the folder that holds package.json, Runtime and Editor); in manifest.json it is
"com.bugsee.unity": "file:/path/to/bugsee-unity". Unity reads the folder in place, so keep it where it is.
From a tarball. Package Manager > + > Add package from tarball.... Unity needs the package files under a
top-level package/ folder (what npm pack makes), and rejects an archive without it. From a checkout:
git archive --format=tar.gz --prefix=package/ -o bugsee-unity-7.0.0-beta.1.tgz v7.0.0-beta.1
Unity rejects an archive whose files are at the top level or under another folder name, which includes GitHub's "Source code" download (its top folder is named after the repository and the tag); use the command above instead. (A tarball also carries Samples~, Tests~, Documentation~ and the
other ~ folders; Unity ignores folders whose names end in ~, so they do not reach your project.)
That is the whole install: no scoped registry, no EDM4U, no dependency-resolve step and no custom Gradle templates to enable. On Android the package declares the Bugsee SDK in the Gradle project Unity generates for each build (see below); on iOS it adds the Bugsee Swift package to the Xcode project.
Projects that use EDM4U for other SDKs keep working.
If the project already declares com.bugsee:bugsee-android itself (through EDM4U, a custom
mainTemplate.gradle or a local AAR), that declaration is kept, nothing is added next to it, and the build
log warns when its version differs from the one this package pins.
using BugseeSdk = Bugsee.Bugsee;
BugseeSdk.Launch("<app token>");The namespace Bugsee and the static facade class Bugsee.Bugsee share a name, so in code outside namespace Bugsee... a bare Bugsee.Launch(...) resolves Bugsee to the namespace and fails with CS0234 (a second alias named Bugsee fails with CS0576). Use the BugseeSdk alias, or write Bugsee.Bugsee.Launch(...); the types (AndroidLaunchOptions, ISpan, ...) stay unqualified with a using of their namespace (Bugsee.Contracts.Options, Bugsee.Contracts.Apm, ...). The full launch options are in Documentation~/index.md.
| Platform | Integration | Current pin |
|---|---|---|
| Android | Maven Central, declared in the generated Gradle project by BugseeAndroidMavenDependencies |
bugsee-android:7.6.0 + bugsee-android-ndk:7.6.0 |
| iOS | Swift Package Manager + Plugins/iOS/BugseeUnityBridge.mm |
bugsee/spm 7.1.0 |
Android stack
| Piece | Status |
|---|---|
bugsee-android |
7.6.0, added to unityLibrary/build.gradle at build time (no Maven transitives) |
bugsee-android-ndk |
Same version, declared alongside (native fatal capture for IL2CPP primary LNM) |
mavenCentral() |
Added to the generated project repositories only if Unity's layout lacks it |
Gradle plugin 4.1.1 |
Patched into the generated Gradle project by BugseeAndroidGradleSetup when it pins AGP 8.6+ (Unity 6; ndk { enabled = true }; for an Export Project the block also reads BUGSEE_APP_TOKEN from the environment of the later Gradle build, see Export Project), in Groovy or Kotlin DSL files, see Gradle file layouts. On Unity 2021.3 / 2022.3 (AGP 7.5.0) and Unity 6000.0.1-44 (AGP 8.3.0) it cannot run; the build-id asset is added instead and symbols are uploaded by the Editor with bugsee-cli found or downloaded automatically, see Documentation~/index.md |
./Tools~/scripts/update-native-sdks.shSee Tools~/versions.env for pinned versions and paths.
The script also vendors the option manifests the native SDKs publish for the pinned versions (Tools~/scripts/update-options-manifest.sh, into Tests~/WrapperPolicy/Fixtures/options-manifest/). After a bump, run the WrapperPolicy tests: OptionsManifestTests fails for a new, removed or changed native option until the wrapper exposes it or lists it as not exposed (with the issue that tracks it). If a pin has no published manifest yet, the script warns and the test stays red until update-options-manifest.sh succeeds (ANDROID_MANIFEST_FILE / IOS_MANIFEST_FILE take a manifest from a local SDK build).
Two branches that bump different pins, or one that bumps a pin while another adds the manifests, conflict only through Tools~/versions.env and the vendored files: whichever merges second runs update-native-sdks.sh again (the CHANGELOG line that names the manifest versions is a pin in native-pins.txt and is rewritten with the rest), otherwise Vendored_manifests_are_verbatim_copies_of_the_pinned_versions is red on main.
See Documentation~/index.md for:
- ExceptionPipeline vs
DetectAndReportCrash - Hang / ANR / OOM launch options
BUGSEE_APP_TOKENEditor uploads (il2cpp-linemap,elf,proguard); the IL2CPP mapping files are written without it, for a later CI upload- iOS archive-time dSYM + linemap Run Script
- iOS native early launch (opt-in):
BUGSEE_IOS_EARLY_LAUNCH=1+BUGSEE_IOS_APP_TOKEN=<token>(optionalBUGSEE_IOS_EARLY_LAUNCH_OPTIONS=<json>) start the iOS SDK natively after Unity'sdidFinishLaunching, before the first scene;Bugsee.Launchthen adopts it. Privacy: the SDK then starts before any C# consent check, even ifBugsee.Launchis never called. With the crash extension, jetsam kills and a native crash are reported (verified on an iPhone 16 Pro, iOS 27.2, for a process the SDK had launched); a launch-watchdog kill before the app is active is expected to be reported too, but that is not verified on a device; options go through Info.plist, where the export escapes$as\u0024(Xcode would collapse$$) - iOS Crash Report Extension (out-of-memory kills on iOS 27+; launch-watchdog kills are normally not reported in Unity, because Bugsee starts at
Bugsee.Launch, after the watchdog window): added by the export on Xcode 27+ in interactive builds with Automatically Sign on (Auto is off in batch mode;=1forces it); needs a Unity version that runs on iOS 27 (UIScene);BUGSEE_IOS_CRASH_EXTENSION=auto|1|0,BUGSEE_IOS_APP_GROUP=group.<id>(defaultgroup.<bundle id>) - Create symbols.zip / FULL native debug symbols vs SYMBOL_TABLE
Runtime/ # C# runtime API + asmdef
Editor/ # Android Gradle injection, iOS SPM, linemap + symbol upload
Plugins/ # iOS ObjC++ bridge, Android UnityManagedException.java
Native~/ios/Bugsee # Local SPM package, used only when UseRemoteSpm is off (default: github.com/bugsee/spm); no xcframework is committed
Tools~/ # Version pins + maintenance scripts
Documentation~/ # Package docs shown in Package Manager
Samples~/
BugseeMiniGame/ # Standalone QA minigame (excluded from UPM via ~)
Open Samples~/BugseeMiniGame in Unity Hub (2021.3+) to try a
small arena with HUD buttons and in-world Bugsee stations. See that folder’s
README.
- Android + iOS bridges (Launch, exceptions, filters, report handler, lifecycle, native crash options)
- ExceptionPipeline (managed auto-capture) + UnityManagedException JSON contract
- Editor symbol orchestrator (linemap / ELF / ProGuard / iOS archive dSYM)
- Contracts (Options, Lifecycle, Reporting, Exchange, Appearance, Feedback)
See DESIGN.md for the full plan.
MIT — see LICENSE.