- Home /
Error Building Player using Strip Assemblies
When I disable stripping optimization, my project builds without a problem, but when I give the option strip assemblies
, Unity gives out an error that looks like this.
Error building Player: UnityException: Failed AOT cross compiler: /Applications/Unity3006/Unity.app/Contents/BuildTargetTools/iPhonePlayer/mono-xcompiler --aot=full,asmonly,nodebug,ficall,static,outfile="Assembly-CSharp.dll.s" "Assembly-CSharp.dll" current dir : /Users/{user}/{project}/Temp/StagingArea/Data/Managed std=
output:
Mono Ahead of Time compiler - compiling assembly /Users/{user}/{project}/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll * Assertion at class.c:4251, condition `class' not met
result file exists: False
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
I have no idea what that failed assertion means. Any help would be greatly appreciated.
Use a different level of stripping or don't use it at all seeing as you're getting errors as it means you're using the libraries you're removing (obv)