Can't builder IOS in Unity5.0f4 Exception:UnusedBytecodeStripper2.exe

Can’t builder IOS in Unity5.0f4 Exception:UnusedBytecodeStripper2.exe
I have find the similar problem at
http://forum.unity3d.com/threads/unityexception-failed-assemblies-stripper-tried-a-few-things-now-im-stuck.249052/

http://forum.unity3d.com/threads/unity-5-rc2-build-to-webgl-fails.299003/

http://forum.unity3d.com/threads/il2cpp-exe-error.311499/

I have use playmaker in a sperate project,it goes well. project setting has setted by some advise. I want to know how to deal with it.if must be update to unity5.0p3,please point which bug cause it.

All of the log is this:

Failed running /Applications/Unity5.0f4/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe -out “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed” -l none -c link -x “/Applications/Unity5.0f4/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper/native_link.xml” -f “/Applications/Unity5.0f4/Unity.app/Contents/Frameworks/il2cpp/LinkerDescriptors” -x “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/…/platform_native_link.xml” -x “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml” -d “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed” -a “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll” -a “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll” -a “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/Assembly-UnityScript.dll” -a “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll” -a “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/PlayMaker.dll” -a “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/TDGAAnalytics.dll” -a “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/I18N.CJK.dll” -a “/Applications/SmartPhone/IOS_N1_unity5.0f4_02/Temp/StagingArea/Data/Managed/I18N.dll”

stdout:
Fatal error in Mono CIL Linker
System.Exception: Error processing method: ‘System.Boolean HutongGames.PlayMaker.ActionHelpers::IsVisible(UnityEngine.GameObject)’ in assembly: ‘PlayMaker.dll’ —> Mono.Cecil.ResolutionException: Failed to resolve UnityEngine.Renderer UnityEngine.GameObject::get_renderer()
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) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:66)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:192) UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String, String&, String&, String, String, IEnumerable1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:185)
UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:136) UnityEditorInternal.AssemblyStripper:Strip(String[], String[], String, String, String&, String&, String, String, IEnumerable1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:121)
UnityEditorInternal.IL2CPPBuilder:RunAssemblyStripper(IEnumerable, String, String, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:431)
UnityEditorInternal.IL2CPPBuilder:StripAssemblies(String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:419)
UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:273)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditor.HostView:OnGUI()

Exception: /Applications/Unity5.0f4/Unity.app/Contents/Frameworks/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:68)
UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (IEnumerable1 args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:192) UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, System.String descriptorsFolder, IEnumerable1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:185)
UnityEditorInternal.AssemblyStripper.Strip (System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String monoLinkerPath, System.String descriptorsFolder, IEnumerable1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:136) UnityEditorInternal.AssemblyStripper.Strip (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String monoLinkerPath, System.String descriptorsFolder, IEnumerable1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:121)
UnityEditorInternal.IL2CPPBuilder.RunAssemblyStripper (IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String assembliesToStrip, System.String searchDirs, System.String monoLinkerPath) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:431)
UnityEditorInternal.IL2CPPBuilder.StripAssemblies (System.String assemblies, System.String managedAssemblyFolderPath) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:419)
UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:273)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:211)
UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.iOSBuildPostprocessor pp, BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String stagingAreaDataManaged, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()

Thanks reading

I don’t think that many (or maybe any) of the links listed are really this same problem. They are all related to the UnusedBytecodeStripper2.exe utility, but I don’t see this specific error in any of those cases.

The really error here is this:

Fatal error in Mono CIL Linker
System.Exception: Error processing
method: ‘System.Boolean
HutongGames.PlayMaker.ActionHelpers::IsVisible(UnityEngine.GameObject)’
in assembly: ‘PlayMaker.dll’ —>
Mono.Cecil.ResolutionException: Failed
to resolve UnityEngine.Renderer
UnityEngine.GameObject::get_renderer()

It looks like the renderer property is obsolete, and GetComponent() should be used instead. Is there a chance that you need to update to a newer version of PlayMaker?

I’m not sure about the specific cause of the problem, but something seems to be out of sync here.