Hello community ! I’m on a AR project in Unity ( I try to do a mobile application for iOS using the AR camera to see 3D objects).
My unity version is 2019.4.12f1.
When I create a 3D project I download these packages :
-AR Foundation
-XR Plugin Management
-AR Kit XR Plugin. (the one that make my problems happen)
My console says : Library/PackageCache/com.unity.xr.management@3.2.17/Editor/XRGeneralBuildProcessor.cs(39,52): error CS0117: ‘BuildPipeline’ does not contain a definition for ‘GetBuildTargetName’
I searched help on lots of forum but I can’t solve this error. Some solutions were given and worked for some people like “Reset the packages on Help” and others…
For me this bug comes with upgrading Oculus XR Toolkit from 1.4.3 to 1.8.1 because I wanted support for Oculus Quest 90fps. It invisibly brought update of XR Plugin Management from 3.2.16 to 4.0.1. My solution was to reset to last working commit, delete library and then install first version of Oculus XR Toolkit that brings 90fps support but does not require XR Plugin Management update (in my case Oculus XR Toolkit v 1.7.0). I have simply tried resist updating Unity to the last moment as it may bring bunch of new problems
Tried updating the project to 2021.1 and it immediately crashed and had to enter Safe mode. From there tried resetting all packages to default and only was able to get Unity to compile after deleting the Examples and XR Folders.
Using 2021 from a fresh install I was finally able to use the AR Template from scratch and compile a fresh project.
Unity 2019.4.13f1, XR Management Plugin 3.2.16, AR Foundation 4.1.1, and AR Core XR Plugin 4.1.1 complies for me for anyone having trouble with AR core package.