Search Unity

Bug ios build fail with arcore error (azure build pipeline)

Discussion in 'AR' started by jeanrouq, Aug 16, 2021.

  1. jeanrouq

    jeanrouq

    Joined:
    Jun 20, 2018
    Posts:
    7
    Hello, on a project having arfoundation, arcore and arkit installed, the ios build fail with the following error:
    BuildFailedException: Cannot find shader 'Unlit/ARCoreBackground'

    It seems that the ArCorePreprocessor build is trying to do some cleanup, but fails the build if the cleanup cannot be done. I tried to remove the arcore xr plugin before the build, but it seems that it is some code triggered by ar foundation that cannot be removed. Thanks for your help.

    ArFoundation version : 4.1.7
    ArCore XR plugin version : 4.1.7
    ArKit XR plugin version : 4.1.7

    stack trace:
    BuildFailedException: Cannot find shader 'Unlit/ARCoreBackground'
    at UnityEditor.XR.ARSubsystems.BuildHelper.FindShaderOrFailBuild (System.String shaderName) [0x00025] in /Users/runner/work/1/s/UnityAppV0.2/Library/PackageCache/com.unity.xr.arsubsystems@4.1.7/Editor/BuildHelper.cs:83
    at UnityEditor.XR.ARSubsystems.BuildHelper.RemoveShaderFromProject (System.String shaderName) [0x0000e] in /Users/runner/work/1/s/UnityAppV0.2/Library/PackageCache/com.unity.xr.arsubsystems@4.1.7/Editor/BuildHelper.cs:56
    at UnityEditor.XR.ARCore.ARCorePreprocessBuild.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) [0x00018] in /Users/runner/work/1/s/UnityAppV0.2/Library/PackageCache/com.unity.xr.arcore@4.1.7/Editor/ARCoreBuildProcessor.cs:39
    at UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass15_0.<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) [0x00000] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:426
    at UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) [0x000ff] in /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:406
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,820
    Can you try to reproduce the behavior locally, as opposed to Azure?