- Home /
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/
https://github.com/playgameservices/play-games-plugin-for-unity/issues/433
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(IEnumerable`1, 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, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:185) UnityEditorInternal.AssemblyStripper:Strip(String, String, String&, String&, String, String, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:136) UnityEditorInternal.AssemblyStripper:Strip(String[], String[], String, String, String&, String&, String, String, IEnumerable`1) (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 (IEnumerable`1 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, IEnumerable`1 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, IEnumerable`1 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, IEnumerable`1 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
Answer by JoshPeterson · Apr 02, 2015 at 11:36 AM
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.
Thank you.I have used unity4.6.4p1,this problem be solved somehow.
I'm having the same problems here.. just trying to do a simple build WebGL with the first scene.
I've tried changing the stripping option (was disabled), and still having the same error :S
@aimozs I don't think that the Stripping Level will have an impact, as the IL2CPP scripting backend is always doing byte code stripping. Do you have the latest version of Play$$anonymous$$aker?
oh sorry, didnt it was about Play$$anonymous$$aker, but I dont use it.. :S
@aimozs You might be experiencing a different issue that looks similar. Could you post your error message on the forums or in a different question on the answers site? Thanks.