I am using Unity 3.5.7f6 on Mac; lastest U3DXT.
Build Android, code stripping enabled.
When I am trying to build a project with U3DXT, I get following error:
UnityException: Failed assemblies stripper: /Applications/Unity3.5/Unity3.5.app/Contents/Frameworks/Mono/bin/mono "/Applications/Unity3.5/Unity3.5.app/Contents/Frameworks/Tools/UnusedBytecodeStripper/UnusedBytecodeStripper.exe" -l none -c link -a "Assembly-CSharp-firstpass.dll" -a "Assembly-CSharp.dll" -out output -x "/Applications/Unity3.5/Unity3.5.app/Contents/Frameworks/Tools/UnusedBytecodeStripper/link.xml" -d "Temp/StagingArea/Data/Managed" -x "/Users/user/Application/unity/Assets/link.xml" -x "tmplink.xml" current dir : Temp/StagingArea/Data/Managed
result file exists: False
stdout:
stderr: Unhandled Exception: Mono.Linker.ResolutionException: Can not resolve reference: UnityEngine.iPhoneGeneration UnityEngine.iPhone::get_generation() at
Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference, System.Object markedby) [0x00000] in <filename unknown>:0 at
Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction, Mono.Cecil.MethodDefinition markedby) [0x00000] in <filename unknown>:0 at
Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00000] in <filename unknown>:0 at
Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00000] in <filename unknown>:0 at
Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in <filename unknown>:0 at Mono.Linker.Steps.MarkStep.Process () [0x00000] in <filename unknown>:0 at
Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0 at
Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00000] in <filename unknown>:0 at
UnusedBytecodeStripper.Program.Main (System.String[] args) [0x00000] in <filename unknown>: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()
Removing U3DXT solves the problem.
Disabling code stripping solves the problem, but any other stripping level still does not work.
Also, I found another question with similar problem, but there is no answer still.
What should I do to fix this?