I was wondering if anyone here was able to get the C5 Generic Collection Library able to compile with their code when building to an iOS device while using the micro mscorlib?
Whenever we build to the device we get this error in Unity:
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-firstpass.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
result file exists: False
stdout:
stderr: Unhandled Exception: Mono.Linker.ResolutionException: Can not resolve reference: System.Type System.Type::MakeGenericType(System.Type[ ]) 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()
First we tried with the dll, then we included the C5 cs files in our project as well, but we still get the error.
Are there .Net limits on what you can and cannot call from monodevelop on iOS, or is this another issue?
Maybe it’s the version of the dll you’re using?
I don’t think it matters. I tried every version available, I still get the same error.