Skip to content

SDK doesn't compile in Unity #2689

@jzapdot

Description

@jzapdot

SDK Version

4.3.1

Unity Version

6000.3.11f1

Platform

  • Editor
  • Mobile (Android, iOS)
  • Desktop (Windows, macOS, Linux)
  • WebGL
  • Console

Sentry Environment

Sentry SaaS (sentry.io)

Other Error Monitoring Solution

Yes

Steps to Reproduce

The latest SDK 4.3.1 doesn't compile for Unity 6000.3.11f1 when pulled from UPM. Instead:

There are compilation errors due to the editor AssemblyDefinition package/Editor/io.sentry.unity.editor.asmdef not finding the runtime AssemblyDefinition package/Editor/Runtime/io.sentry.unity.runtime.asmdef.
The runtime AssemblyDefinition package/Editor/Runtime/io.sentry.unity.runtime.asmdef doesn't load in the editor. In the inspector it shows a warning for invalid platforms.

This results in the following compilation error.

Library/PackageCache/io.sentry.unity@da7a7655a562/Editor/SentryUserFeedbackEditor.cs(6,26): error CS0246: The type or namespace name 'SentryUserFeedback' could not be found (are you missing a using directive or an assembly reference?)

I resolved these issues locally by customizing the package, removing the unsupported platforms, and toggling off the "Use Guids" checkbox on the package/Editor/Runtime/io.sentry.unity.runtime.asmdef and manually assigning the package/Editor/Runtime/io.sentry.unity.runtime.asmdef file.

Expected vs Actual Result

Expected: It should just compile on an empty Unity import.
Actual: It does not compile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugsomething isn't working as it shouldErrorsissues relates to the error reporting productUnityplatform label
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions