google-ar / arcore-unity-extensions

Google ARCore Extensions and Geospatial Creator for Unity's AR Foundation
Other
354 stars 96 forks source link

External Dependency Manager Directly included in Repo instead of included as Package Dependency #43

Open Asanche opened 3 years ago

Asanche commented 3 years ago

I have a project that is dependent on the https://github.com/googlesamples/unity-jar-resolver package

If I include the arcore-unity-extensions repo, it gives me the following error at build-time

GUID [3aa17cd5f43042a1a7381759dc1258a7] for asset 'Packages/com.google.ar.core.arfoundation.extensions/Editor/ExternalDependencyManager/Editor/Google.VersionHandler.dll.mdb' conflicts with: 'Packages/com.google.external-dependency-manager/ExternalDependencyManager/Editor/Google.VersionHandler.dll.mdb' (current owner) We can't assign a new GUID because the asset is in an immutable folder. The asset will be ignored.

This package should not be directly included in the repo, afaict, and instead included as a package dependency.

macekj commented 3 years ago

Bumping this issue. Was the source of many headaches of trying to perform an iOS build while using the Firebase Unity SDK.

In case it helps, here is a synopsis of the issues experienced and a solution for anyone else who encounters this:

The solution is to delete ARFoundation's outdated External Dependency Manager and update the _iosResolverGuid variable in Editor/Scripts/Internal/IOSSupportHelper.cs to the GUID found in Google.IOSResolver_{version}.dll.meta of whatever is the more up-to-date version your project has installed. This resolves the Null Reference Exception and after some pods fiddling, I was able to get the build to successfully work on iOS.

adampsst commented 3 years ago

Not sure why EDM is included inside the ARCore package, it should be a dependency which is listed on their site. I have been removing this as well for a while.

aurbanovichxAppsULove commented 2 years ago

Any plans on EDM deleting or moving to reference?

timokorkalainen commented 1 year ago

At least with Unity 2022.2 in an a new clean project EDM is not even working correctly when included like this. No menu item becomes available and no dependencies get installed, preventing building.