build with IL2CPP error unity 4.6.9 while making iOS build

The project works fine in Android and me facing the following issues while making iOS build

  1. Failed running /Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed” -l none -c link -x “/Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/native_link.xml” -f “/Applications/Unity/Unity.app/Contents/Frameworks/il2cpp/LinkerDescriptors” -x “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/…/platform_native_link.xml” -x “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml” -x “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Assets/link.xml” -d “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/Assembly-UnityScript-firstpass.dll” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/Assembly-UnityScript.dll” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/P31RestKit.dll” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/Photon3Unity3D.dll” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/PlayerIOUnity3DClient.dll” -a “/Volumes/Data Backup/Nitish Project’s/EightBalls_client_Build/Temp/StagingArea/Data/Managed/App42-Unity3D-SDK-4.1.2.dll”

stdout;
Fatal error in Mono CIL Linker
System.Exception: Error processing method: ‘System.Void com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW::ExecuteMultipart(System.String,System.String,System.Collections.Generic.Dictionary2<System.String,System.String>,System.Collections.Generic.Dictionary2,System.Collections.Generic.Dictionary2<System.String,System.String>,System.Collections.Generic.Dictionary2,System.String,System.String,com.shephertz.app42.paas.sdk.csharp.App42CallBack)’ in assembly: ‘App42-Unity3D-SDK-4.1.2.dll’ —> Mono.Cecil.ResolutionException: Failed to resolve System.Collections.Generic.Dictionary`2<System.String,System.String> UnityEngine.WWWForm::get_headers()
at Mono.Linker.Steps.MarkStep.MarkMethod (Mono.Cecil.MethodReference reference) [0x00000] in :0
at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction) [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
— End of inner exception stack trace —
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 Mono.Linker.Driver.Run () [0x00000] in :0
at Mono.Linker.Driver.RunDriver (Mono.Linker.Driver driver) [0x00000] in :0
stderr:

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable1, String&, String&, String, String) UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String, String&, String&, String, String, IEnumerable1)
UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable1) UnityEditorInternal.AssemblyStripper:Strip(String[], String[], String, String, String&, String&, String, String, IEnumerable1)
UnityEditorInternal.IL2CPPBuilder:RunAssemblyStripper(IEnumerable, String, String, String, String)
UnityEditorInternal.IL2CPPBuilder:StripAssemblies(IEnumerable1, String) UnityEditorInternal.IL2CPPBuilder:Run() UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action1, RuntimeClassRegistry)
UnityEditor.HostView:OnGUI()

  1. Error building Player: Exception: /Applications/Unity/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!

@JoshPeterson i read your posts and i hope you will help me and any other persons suggestions would be appreciated

Thanks in advance

It looks like this is the error that matters:

Error processing method: ‘System.Void com.shephertz.app42.paas.sdk.csharp.connection.RESTConnectorWWW::ExecuteMultipart(System.String,System.String,System.Collections.Generic.Dictionary2 ,System.Collections.Generic.Dictionary2,System.Collections.Generic.Dictionary2 ,System.Collections.Generic.Dictionary2,System.String,System.String,com.shephertz.app42.paas.sdk.csharp.App42CallBack)’ in assembly: ‘App42-Unity3D-SDK-4.1.2.dll’ —> Mono.Cecil.ResolutionException: Failed to resolve System.Collections.Generic.Dictionary`2 UnityEngine.WWWForm::get_headers()

I’m not too familiar with the UnityEngine.WWWForm class, but it seems that ExecuteMultipart is trying to reference a method named get_headers, which does not exist.

Is App42-Unity3D-SDK-4.1.2.dll built against the same version of Unity that you are using? I suspect there may be a mismatch here.