I just noticed I got this message on the console this time (I don’t think it was there before):
Cross compilation job Assembly-CSharp.dll failed.
UnityEngine.UnityException: Failed AOT cross compiler: /Applications/Unity/Unity.app/Contents/BuildTargetTools/iPhonePlayer/mono-xcompiler --aot=full,asmonly,nodebug,static,outfile="Assembly-CSharp.dll.s" "Assembly-CSharp.dll" current dir : /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed
result file exists: False
stdout: Mono Ahead of Time compiler - compiling assembly /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/Assembly-CSharp.dllThe following assembly referenced from /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll could not be loaded: Assembly: Vectrosity (assemblyref_index=4) Version: 1.0.4646.29153 Public Key: (none)The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/).Could not load file or assembly 'Vectrosity, Version=1.0.4646.29153, Culture=neutral, PublicKeyToken=null' or one of its dependencies.The class DragAndDrawPath could not be loaded, used in Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullCould not load file or assembly 'Vectrosity, Version=1.0.4646.29153, Culture=neutral, PublicKeyToken=null' or one of its dependencies.The class PlayerGoToTarget could not be loaded, used in Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullThe class PlayerMain could not be loaded, used in Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=nullThe class System.NotSupportedException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eMissing method .ctor in assembly /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/NGUI.dll, type System.NotSupportedExceptionThe class System.NotSupportedException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eMissing method .ctor in assembly /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/NGUI.dll, type System.NotSupportedExceptionThe class System.NotSupportedException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798eMissing method .ctor in assembly /(MYPROJECTPATH)/Temp/StagingArea/Data/Managed/NGUI.dll, type System.NotSupportedExceptionThe class System.NotSupportedException could not be loaded, used in mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e* Assertion at method-to-ir.c:7980, condition `costs > 0' not met
stderr:
at UnityEditor.MonoProcessUtility.RunMonoProcess (System.Diagnostics.Process process, System.String name, System.String resultingFile) [0x00000] in <filename unknown>:0
at UnityEditor.MonoCrossCompile.CrossCompileAOT (BuildTarget target, System.String crossCompilerAbsolutePath, System.String assembliesAbsoluteDirectory, CrossCompileOptions crossCompileOptions, System.String input, System.String output, System.String additionalOptions) [0x00000] in <filename unknown>:0
at UnityEditor.MonoCrossCompile+JobCompileAOT.ThreadPoolCallback (System.Object threadContext) [0x00000] in <filename unknown>:0
UnityEditor.MonoCrossCompile:CrossCompileAOTDirectoryParallel(BuildTarget, CrossCompileOptions, String, String, String)
PostProcessiPhonePlayer:PostProcess(BuildTarget, String, String, String, String, String, String, String, BuildOptions, RuntimeClassRegistry)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()