Hi folks.
I have a problem since 5.1.1f1 with my automated build. The build fails due to:
ArgumentException: The Assembly UnityEditor is referenced by Assembly-CSharp ('Library/ScriptAssemblies/Assembly-CSharp.dll'). But the dll is not allowed to be included or could not be found.
11:39:29 at UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) [0x0020d] in /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:154
11:39:29 at UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) [0x00015] in /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:192
11:39:29 UnityEditor.BuildPipeline:BuildPlayerInternalNoCheck(String[], String, BuildTarget, BuildOptions, Boolean, UInt32&)
11:39:29 UnityEditor.BuildPipeline:BuildPlayerInternal(String[], String, BuildTarget, BuildOptions, UInt32&) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/BuildPipelineBindings.gen.cs:200)
11:39:29 UnityEditor.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions) (at /Users/builduser/buildslave/unity/build/artifacts/generated/common/editor/BuildPipelineBindings.gen.cs:147)
11:39:29 BuildHelper:GenericBuild(String[], String, String, BuildTarget, BuildOptions) (at Assets/Editor/BuildScript/BuildScript.cs:252)
11:39:29 BuildHelper:performUnityBuild() (at Assets/Editor/BuildScript/BuildScript.cs:181)
Strange thing is, that if I build manually everything is fine. I can append to the existing project, as well as replace it without the error. If I deleted the library folder (which will lead to a full reimport) it also runs fine (well, that’s mostly like replacing manually).
The command to start the build process is:
-quit -batchmode -nographics -buildTarget ios -projectPath ${WORKSPACE} -executeMethod BuildHelper.performUnityBuild
I tried to figure out where the reference in the code may be, but all occurances are inside a #if UNITY_EDITOR define which worked before quite nicely.
Does anyone has a tip how I can figure out where the reference may be? Is there anyone else having the same problem?