Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding package to Unity #35

Open
mag-lorenarother opened this issue Dec 11, 2024 · 1 comment
Open

Error when adding package to Unity #35

mag-lorenarother opened this issue Dec 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mag-lorenarother
Copy link

Description

When I add the package from the url to a Unity 2022.3 Android project, I get this error on the console:

Assembly 'Packages/com.newrelic.agent/com.newrelic.agent/ExternalDependencyManager/Editor/1.2.175/Google.IOSResolver.dll' will not be loaded due to errors:
Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?
Reference validation can be disabled in the Plugin Inspector.

The error does go away if I disable reference Validation or if I delete the dll from the package cache, but those are only local solutions, that get overwritten. Is there a way to prevent the package from installing that dll, since we don't need iOS at all?

Steps to Reproduce

  1. In the Unity project, open the package manager.
  2. Select Add package from url , enter https://github.com/newrelic/newrelic-unity-agent.git and click Add
  3. Observe there's an error in the console.

Your Environment

Windows 11
Unity 2022.3.1
Minimum/Target API: Android 12.0 (12L, API level 32)

@mag-lorenarother mag-lorenarother added the bug Something isn't working label Dec 11, 2024
@ndesai-newrelic
Copy link
Contributor

@mag-lorenarother is it still the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants