- Home /
ios build error (UnityException: Failed assemblies stripper)
How can I resolve it??
UnityException: Failed assemblies stripper: /Applications/Unity/Unity.app/Contents/Frameworks/Mono/bin/mono "/Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/UnusedBytecodeStripper.exe" -l none -c link -a "Assembly-CSharp-firstpass.dll" -a "Assembly-CSharp.dll" -a "Assembly-UnityScript.dll" -out output -x "/Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/link.xml" -d "Temp/StagingArea/Data/Managed" -x "tmplink.xml" current dir : Temp/StagingArea/Data/Managed
Env: WAPI_PROCESS_HANDLE_OFFSET = '5' XPC_FLAGS = '0x0' Apple_PubSub_Socket_Render = '/private/tmp/com.apple.launchd.TM9pm8G1FY/Render' XPC_SERVICE_NAME = '0' LOGNAME = 'baramy' TMPDIR = '/var/folders/k6/66xnlh2j0p3f9yfqrbk4056w0000gp/T/' MONO_PATH = '/Applications/Unity/Unity.app/Contents/Frameworks/Mono/lib/mono/2.0:.' SSH_AUTH_SOCK = '/private/tmp/com.apple.launchd.gzKoJLegEb/Listeners' PWD = '/Users/baramy/New Unity Project' = '/Applications/Unity/Unity.app/Contents/MacOS/Unity' __CF_USER_TEXT_ENCODING = '0x1F6:0x3:0x33' SHELL = '/bin/bash' USER = 'baramy' HOME = '/Users/baramy' PATH = '/usr/bin:/bin:/usr/sbin:/sbin' SHLVL = '2' result file exists: False. Timed out: False stdout: stderr: Unhandled Exception: Mono.Linker.ResolutionException: Can not resolve reference: System.Void System.Security.SecurityException::.ctor(System.String) at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference, System.Object markedby) [0x00000] in :0 at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction, Mono.Cecil.MethodDefinition markedby) [0x00000] in :0 at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00000] in :0 at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00000] in :0 at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in :0 at Mono.Linker.Steps.MarkStep.Process () [0x00000] in :0 at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x00000] in :0 at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00000] in :0 at UnusedBytecodeStripper.Program.Main (System.String[] args) [0x00000] in :0
UnityEditor.MonoProcessUtility.RunMonoProcess (System.Diagnostics.Process process, System.String name, System.String resultingFile) UnityEditor.MonoAssemblyStripping.MonoLink (BuildTarget buildTarget, System.String managedLibrariesDirectory, System.String[] input, System.String[] allAssemblies, UnityEditor.RuntimeClassRegistry usedClasses) UnityEditor.HostView:OnGUI()
I am also facing same exception while creating build for iOS. Please give some suggestion.
Setting scripting backend in player setting to IL2CPP ins$$anonymous$$d of mono2x solved it for me
same from for me $$anonymous$$ono2x working but IL2CPP Not Working How To Solution
Answer by IrshadKhan_ · Apr 01, 2017 at 07:32 AM
Delete link.xml path : \Asssts\link.xml and Try again build i want to test working properly
Your answer
![](https://koobas.hobune.stream/wayback/20220613165827im_/https://answers.unity.com/themes/thub/images/avi.jpg)