Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Not able to build an iOS build. UnusedBytecodeStripper2.exe did not run properly!

Discussion in 'Editor & General Support' started by mohitkatariya, Sep 26, 2015.

  1. galent

    galent

    Joined:
    Jan 7, 2008
    Posts:
    1,078
    Ok, I fixed it... or so it seems. I had to use the "Reimport all" option from the project right-click menu. that seems to have cleared the errors.

    Thanks for your help!
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Good to hear!
     
  3. Bess2k2

    Bess2k2

    Joined:
    May 7, 2017
    Posts:
    11
    Having a similar issue trying to build to ios. Here are the two reports. Any help would be appreciated.

    Exception: /Applications/Unity/Unity.app/Contents/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, System.Action`1 setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98)
    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/AssemblyStripper.cs:104)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:97)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:196)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:128)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:123)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:32)
    UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:673)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:516)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (PostProcessorSettings postProcessorSettings, BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:487)
    UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:34)
    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, UnityEditor.BuildReporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    UnityEditor.HostView:OnGUI()

    and

    Failed running /Applications/Unity/Unity.app/Contents/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe --api NET_2_0_Subset -out "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/tempStrip" -l none -c link -b True -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -f "/Applications/Unity/Unity.app/Contents/il2cpp/LinkerDescriptors" -x "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/preserved_derived_types.xml" -d "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed" -a "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/Assembly-UnityScript.dll" -a "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/UnityEngine.Analytics.dll" -a "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/Adventure Toolkit.dll" -a "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/PlayMaker.dll" -a "/Applications/Unity/211CK- mobile/Temp/StagingArea/Data/Managed/TextMeshPro.dll"

    stdout:
    SweepReport:
    Mono.Cecil.MethodDefinition => System.Void RefreshAppReceipt()System.Void SetApplicationUsername(System.String)System.String get_appReceipt()System.Boolean get_canMakePayments()System.Boolean get_simulateAskToBuy()
    System.MonoType => Mono.Cecil.TypeDefinitionMono.Cecil.TypeDefinitionMono.Cecil.TypeDefinitionMono.Cecil.TypeDefinitionMono.Cecil.TypeDefinition
    Mono.Cecil.FieldDefinition => AdvertisingIdentifierCallback OnAdvertisingIdentifierCallbackUnityEngine.Application/LogCallback modreq(System.Runtime.CompilerServices.IsVolatile) s_RegisterLogCallbackDeprecatedSystem.String unsupportedIdentifierSystem.Byte kIsVisibleMaskSystem.Byte kDistanceMask
    Fatal error in Mono CIL Linker
    System.ArgumentException: Member 'UnityEngine.AudioClip' is declared in another module and needs to be imported
    at Mono.Cecil.MetadataBuilder.LookupToken (IMetadataTokenProvider provider) <0x10f2f6c00 + 0x0026a> in <filename unknown>:0
    at Mono.Cecil.SignatureWriter.MakeTypeDefOrRefCodedRID (Mono.Cecil.TypeReference type) <0x10f2f6bb0 + 0x0002c> in <filename unknown>:0
    at Mono.Cecil.SignatureWriter.WriteTypeSignature (Mono.Cecil.TypeReference type) <0x10f2f6460 + 0x0046c> in <filename unknown>:0
    at Mono.Cecil.SignatureWriter.WriteMethodSignature (IMethodSignature method) <0x10f2f6120 + 0x00299> in <filename unknown>:0
    at Mono.Cecil.MetadataBuilder.GetMethodSignature (IMethodSignature method) <0x10f2f6000 + 0x000e8> in <filename unknown>:0
    at Mono.Cecil.MetadataBuilder.AddMethod (Mono.Cecil.MethodDefinition method) <0x10f2f5bc0 + 0x000cf> in <filename unknown>:0
    at Mono.Cecil.MetadataBuilder.AddMethods (Mono.Cecil.TypeDefinition type) <0x10f2f5b20 + 0x00061> in <filename unknown>:0
    at Mono.Cecil.MetadataBuilder.AddType (Mono.Cecil.TypeDefinition type) <0x10f2f3490 + 0x0022b> in <filename unknown>:0
    at Mono.Cecil.MetadataBuilder.AddTypeDefs () <0x10f2f33f0 + 0x00061> in <filename unknown>:0
    at Mono.Cecil.MetadataBuilder.BuildTypes () <0x10f2f2fd0 + 0x00049> in <filename unknown>:0
    at Mono.Cecil.MetadataBuilder.BuildModule () <0x10f2f02c0 + 0x0013b> in <filename unknown>:0
    at Mono.Cecil.MetadataBuilder.BuildMetadata () <0x10f2f0260 + 0x00017> in <filename unknown>:0
    at Mono.Cecil.ModuleWriter.<BuildMetadata>b__0 (Mono.Cecil.MetadataBuilder builder, Mono.Cecil.MetadataReader _) <0x10f2f0230 + 0x0001b> in <filename unknown>:0
    at Mono.Cecil.ModuleDefinition.Read[TItem,TRet] (Mono.Cecil.TItem item, System.Func`3 read) <0x10c3d94e0 + 0x00078> in <filename unknown>:0
    at Mono.Cecil.ModuleWriter.BuildMetadata (Mono.Cecil.ModuleDefinition module, Mono.Cecil.MetadataBuilder metadata) <0x10f2f0100 + 0x000fd> in <filename unknown>:0
    at Mono.Cecil.ModuleWriter.WriteModuleTo (Mono.Cecil.ModuleDefinition module, System.IO.Stream stream, Mono.Cecil.WriterParameters parameters) <0x10f2e8ca0 + 0x0023c> in <filename unknown>:0
    at Mono.Cecil.ModuleDefinition.Write (System.IO.Stream stream, Mono.Cecil.WriterParameters parameters) <0x10f2e8b60 + 0x0006f> in <filename unknown>:0
    at Mono.Cecil.ModuleDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) <0x10f2e8ab0 + 0x00055> in <filename unknown>:0
    at Mono.Cecil.AssemblyDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) <0x10f2e8a60 + 0x00035> in <filename unknown>:0
    at Mono.Linker.Steps.OutputStep.OutputAssembly (Mono.Cecil.AssemblyDefinition assembly) <0x10f2e82a0 + 0x000db> in <filename unknown>:0
    at Mono.Linker.Steps.OutputStep.ProcessAssembly (Mono.Cecil.AssemblyDefinition assembly) <0x10f2e8270 + 0x00019> in <filename unknown>:0
    at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) <0x10c3ce600 + 0x000b1> in <filename unknown>:0
    at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) <0x10c3cd6c0 + 0x000e6> in <filename unknown>:0
    at Mono.Linker.Driver.Run (IEqualityComparer`1 typeComparer, IEqualityComparer`1 methodComparer) <0x10c116430 + 0x00be7> in <filename unknown>:0
    at Mono.Linker.Driver.RunDriverWithErrorHandling (Mono.Linker.Driver driver, IEqualityComparer`1 typeComparer, IEqualityComparer`1 methodComparer) <0x10c1163e0 + 0x00026> in <filename unknown>:0
    at Mono.Linker.Driver.RunDriver (Mono.Linker.Driver driver, IEqualityComparer`1 typeComparer, IEqualityComparer`1 methodComparer) <0x10c1162f0 + 0x0003b> in <filename unknown>:0
    stderr:

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:104)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:97)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:196)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:128)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:123)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:32)
    UnityEditor.HostView:OnGUI()
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    @Bess2k2

    Have you attempted to re-import all of the managed plugins in the project? That will run the API Updater from Unity again, and has corrected the problem in most of the cases we have seen.
     
  5. Bess2k2

    Bess2k2

    Joined:
    May 7, 2017
    Posts:
    11
    Thank you for the quick reply and all your help. I updated to Unity to 5.6 and reimported everything. So far so good!
     
    JoshPeterson likes this.
  6. Deleted User

    Deleted User

    Guest

    I deleted link.xml in the directory of Assets,then fixed it. Thanks for
     
  7. viktouille

    viktouille

    Joined:
    Jul 19, 2017
    Posts:
    9
    Hi, I'm using Unity 5.6.0f3 and I think that my error is different.
    I tried all the solution above and it didn't worked for me.

    Here are the errors logs
    1)
    2)
    Is my problem different or I misapplied the solution from above?

    Thanks in advance :)
     
  8. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    @viktouille

    This might be a different problem. I think the error that matters is this:

    System.IO.IOException: Sharing violation on path /Volumes/LaCie_3To/Dossier a mettre sur INSYNC/1-IPad_Neutre_v2.0 copie/Temp/StagingArea/Data/Managed/tempStrip/UnityEngine.dll.mdb

    That usually indicates something is wrong with the permissions for the project directory.
     
  9. viktouille

    viktouille

    Joined:
    Jul 19, 2017
    Posts:
    9
    Thanks for the reply but..

    How did it happen?
    Does
    Code (CSharp):
    1. chmod 777 Volumes/LaCie_3To/Dossier a mettre sur INSYNC/1-IPad_Neutre_v2.0 copie/Temp/StagingArea/Data/Managed/tempStrip/UnityEngine.dll.mdb
    will work?
     
  10. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    I'm not sure, but it is worth a try. A "sharing violation" is a rather general error, which could be caused by a number of things, so it is difficult to tell.
     
  11. viktouille

    viktouille

    Joined:
    Jul 19, 2017
    Posts:
    9
    chmod didn't work...

    Is there a way to skip "UnusedBytecodeStripper2.exe" for not having this problem?
     
  12. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    No, it is not possible to skip this step. Even if we could skip it though, the problem indicates that something else is wrong. I suspect that it would show up again.

    This might be worth trying with a new empty project. Or maybe try to move the existing project to a different location on drive.
     
  13. binaree01

    binaree01

    Joined:
    Jun 4, 2015
    Posts:
    4
    Hi I'm getting similar problem but all solutions do not work for me :(
    (1. Changing Scripting Backend and Stripping Level / 2. Deleting link.xml / 3. Re-import all)
    (Is it right that to delete link.xml which is under /Applications/Unity/Unity.app/Contents/Tools directory?)

    + I did reinstalling Unity at all but it was no-use too.

    These are my errors (they are 3)

    ---1---
    Failed running /Applications/Unity/Unity.app/Contents/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe --api NET_2_0_Subset -out "/Users/basicaccount/pale_lands_2017_Jul/Temp/StagingArea/Data/Managed/tempStrip" -l none -c link -b true -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -f "/Applications/Unity/Unity.app/Contents/il2cpp/LinkerDescriptors" -x "/Users/basicaccount/pale_lands_2017_Jul/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Users/basicaccount/pale_lands_2017_Jul/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Users/basicaccount/pale_lands_2017_Jul/Temp/StagingArea/Data/preserved_derived_types.xml" -x "/Users/basicaccount/pale_lands_2017_Jul/Assets/FacebookSDK/link.xml" -d "/Users/basicaccount/pale_lands_2017_Jul/Temp/StagingArea/Data/Managed"

    stdout:
    Fatal error in Mono CIL Linker
    Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
    at Mono.Linker.LocalDirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x00076] in <190155f215884d2bb1c54242778dfd53>:0
    at Mono.Linker.AssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters) [0x0001a] in <190155f215884d2bb1c54242778dfd53>:0
    at Mono.Linker.LocalDirectoryAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name) [0x00015] in <190155f215884d2bb1c54242778dfd53>:0
    at Unity.IL2CPP.Common.WindowsRuntimeAwareMetadataResolver.Resolve (Mono.Cecil.TypeReference type) [0x00065] in <190155f215884d2bb1c54242778dfd53>:0
    at Mono.Cecil.ModuleDefinition.Resolve (Mono.Cecil.TypeReference type) [0x00006] in <c6cbe17310154746b5cee213d0ed414a>:0
    at Mono.Cecil.TypeReference.Resolve () [0x00006] in <c6cbe17310154746b5cee213d0ed414a>:0
    at UnusedBytecodeStripper2.ResolveFromMonoBehaviours.IsMonoBehaviourOrScriptableObject (Mono.Cecil.TypeDefinition type) [0x0005b] in <190155f215884d2bb1c54242778dfd53>:0
    at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x00048] in <776c86d7978548379a28dce0f5e4ccbb>:0
    at UnusedBytecodeStripper2.ResolveFromMonoBehaviours.Process (Mono.Linker.LinkContext context) [0x0008f] in <190155f215884d2bb1c54242778dfd53>:0
    at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00019] in <190155f215884d2bb1c54242778dfd53>:0
    at Mono.Linker.Driver.Run (System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x003e2] in <190155f215884d2bb1c54242778dfd53>:0
    at Mono.Linker.Driver.RunDriverWithErrorHandling (Mono.Linker.Driver driver, System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x00001] in <190155f215884d2bb1c54242778dfd53>:0
    at Mono.Linker.Driver.RunDriver (Mono.Linker.Driver driver, System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x00002] in <190155f215884d2bb1c54242778dfd53>:0
    stderr:

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:102)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1,

    ---2---
    Exception: /Applications/Unity/Unity.app/Contents/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, System.Action`1 setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98)
    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/AssemblyStripper.cs:102)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:768)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:586)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (PostProcessorSettings postProcessorSettings, BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:546)
    UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:34)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, 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, UnityEditor.BuildReporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono


    ---3---

    ArgumentException: The Assembly Facebook.Unity.Settings is referenced by Facebook.Unity ('Assets/FacebookSDK/Plugins/Facebook.Unity.dll'). But the dll is not allowed to be included or could not be found.
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:142)
    UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:148)
    UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[] paths, System.String[] foldersToSearch, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:179)
    UnityEditor.HostView:OnGUI()


    Any Suggestion is appreciated. pls :)
     
  14. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Which version of Unity are you using? It might be worth trying the latest patch release, as I think we have corrected something like this before. If you've already done that, then can you submit a bug report with this project? This error is very odd. Certainly Unity should be able to find the mscorlib.dll assembly.
     
  15. t0m0943

    t0m0943

    Joined:
    Feb 11, 2017
    Posts:
    6
    I'm having a similar issues. I could not find a link.xml file to delete. Any help is appreciated

    Error 1:
    Failed running /Applications/Unity/Unity.app/Contents/il2cpp/build/UnityLinker.exe --api=NET_2_0 -out="/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/tempStrip" -l=none -c=link --link-symbols -x="/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -f="/Applications/Unity/Unity.app/Contents/il2cpp/LinkerDescriptors" -x "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Users/tc/DejaRun/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Users/tc/DejaRun/Temp/StagingArea/Data/preserved_derived_types.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/AI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Animation.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Audio.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Cloth.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/CrashReporting.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Director.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/GameCenter.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/IMGUI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ImageConversion.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Input.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/JSONSerialize.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ParticleSystem.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ParticlesLegacy.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/PerformanceReporting.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Physics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Physics2D.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ScreenCapture.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/SpriteMask.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/StyleSheets.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Terrain.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/TerrainPhysics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/TextRendering.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UIElements.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UNET.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityAnalytics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityConnect.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequest.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequestAudio.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequestTexture.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequestWWW.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/VR.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Vehicles.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Video.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Web.xml" -d "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed" -a "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/Assembly-UnityScript-firstpass.dll" -a "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/Assembly-UnityScript.dll" -a "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/UnityEngine.Analytics.dll" -a "/Users/tc/DejaRun/Temp/StagingArea/Data/Managed/DOTween.dll"

    stdout:
    Fatal error in Unity CIL Linker
    System.Xml.XmlException: '"' is an unexpected token. The expected token is ';'. Line 298, position 31.
    at System.Xml.XmlTextReaderImpl.Throw (System.Exception e) [0x0002a] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String[] args) [0x00029] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken (System.String expectedToken1, System.String expectedToken2) [0x00040] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken (System.Int32 pos, System.String expectedToken1, System.String expectedToken2) [0x0000c] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.ThrowUnexpectedToken (System.Int32 pos, System.String expectedToken) [0x00000] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.HandleEntityReference (System.Boolean isInAttributeValue, System.Xml.XmlTextReaderImpl+EntityExpandType expandType, System.Int32& charRefEndPos) [0x00105] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow (System.Int32 curPos, System.Char quoteChar, System.Xml.XmlTextReaderImpl+NodeData attr) [0x002dc] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.ParseAttributes () [0x0042c] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.ParseElement () [0x0023d] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.ParseElementContent () [0x001b5] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XmlTextReaderImpl.Read () [0x00090] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XPath.XPathDocument.LoadFromReader (System.Xml.XmlReader reader, System.Xml.XmlSpace space) [0x00287] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XPath.XPathDocument..ctor (System.String uri, System.Xml.XmlSpace space) [0x00013] in <611e64636ff745389933c69c817b2d4a>:0
    at System.Xml.XPath.XPathDocument..ctor (System.String uri) [0x00000] in <611e64636ff745389933c69c817b2d4a>:0
    at UnityLinker.UnityDriver.ParseArguments (Mono.Linker.Pipeline p, UnityLinker.UnityLinkContext context, System.Collections.ArrayList custom_steps, Mono.Linker.I18nAssemblies& assemblies) [0x00140] in <8faa3831367147a5b4f1efc161d11bdf>:0
    at UnityLinker.UnityDriver.Run () [0x00019] in <8faa3831367147a5b4f1efc161d11bdf>:0
    at UnityLinker.UnityDriver.RunDriverWithoutErrorHandling () [0x00001] in <8faa3831367147a5b4f1efc161d11bdf>:0
    at UnityLinker.UnityDriver.RunDriver () [0x00002] in <8faa3831367147a5b4f1efc161d11bdf>:0
    stderr:

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:89)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:82)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:200)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:114)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.HostView:OnGUI()

    ERROR 2:

    Exception: /Applications/Unity/Unity.app/Contents/il2cpp/build/UnityLinker.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    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/AssemblyStripper.cs:89)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:82)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:200)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:114)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:764)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:602)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (PostProcessorSettings postProcessorSettings, BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:558)
    UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:37)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:263)
    UnityEditor.HostView:OnGUI()

    ERROR 3

    UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:162
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:83
    UnityEditor.HostView:OnGUI()
     
  16. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    The problem might be in one of the .xml file passes to UnityLinker on the command line. I would start by looking at the XML files in the /Users/tc/DejaRun/Temp/StagingArea/Data/ directory. Those get generated by the Unity editor. Maybe something is wrong in one of them.
     
  17. t0m0943

    t0m0943

    Joined:
    Feb 11, 2017
    Posts:
    6
    Thank you - i was able to find the XML file & a script title with bad syntax
     
    JoshPeterson likes this.
  18. Dev_Ankit

    Dev_Ankit

    Joined:
    Nov 17, 2016
    Posts:
    5
    I tried deleting Link.xml that were before here in my project under Gamesparks folder. I tried reimporting everything but none of the stuff worked for me.

    Error 1
    Failed running C:\Program Files\Unity\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe --api NET_2_0_Subset -out "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\Managed\tempStrip" -l none -c link -b true -x "C:/Program Files/Unity/Editor/Data/PlaybackEngines/iOSSupport\Whitelists\Core.xml" -f "C:\Program Files\Unity\Editor\Data\il2cpp\LinkerDescriptors" -x "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\Managed\..\platform_native_link.xml" -x "D:\Nerdz Studios\Loopables/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\preserved_derived_types.xml" -d "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\Managed" -a "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" -a "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" -a "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" -a "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll" -a "D:\Nerdz Studios\Loopables\Temp\StagingArea\Data\Managed\DOTween.dll"

    stdout:
    SweepReport:
    Mono.Cecil.MethodDefinition (12895) => System.Void .ctor(System.String,System.Object[]), System.Void Call(System.String,System.Object[]), System.Void CallStatic(System.String,System.Object[]), FieldType Get(System.String), System.Void Set(System.String,FieldType), ...
    Mono.Cecil.TypeDefinition (3009) => UnityEngine.WeakListenerBindings, UnityEngine.NetworkReachability, UnityEngine.UserAuthorization, UnityEngine.ApplicationInstallMode, UnityEngine.ApplicationSandboxType, ...
    Mono.Cecil.FieldDefinition (1719) => AdvertisingIdentifierCallback OnAdvertisingIdentifierCallback, UnityEngine.Application/LogCallback modreq(System.Runtime.CompilerServices.IsVolatile) s_RegisterLogCallbackDeprecated, System.String unsupportedIdentifier, System.Byte kIsVisibleMask, System.Byte kDistanceMask, ...
    Fatal error in Mono CIL Linker
    System.ArgumentException: Member 'DG.Tweening.Tween' is declared in another module and needs to be imported
    at Mono.Cecil.MetadataBuilder.LookupToken(IMetadataTokenProvider provider)
    at Mono.Cecil.SignatureWriter.WriteTypeSignature(TypeReference type)
    at Mono.Cecil.SignatureWriter.WriteMethodSignature(IMethodSignature method)
    at Mono.Cecil.MetadataBuilder.AddMethod(MethodDefinition method)
    at Mono.Cecil.MetadataBuilder.AddMethods(TypeDefinition type)
    at Mono.Cecil.MetadataBuilder.AddType(TypeDefinition type)
    at Mono.Cecil.MetadataBuilder.AddTypeDefs()
    at Mono.Cecil.MetadataBuilder.BuildTypes()
    at Mono.Cecil.MetadataBuilder.BuildModule()
    at Mono.Cecil.ModuleWriter.<>c.<BuildMetadata>b__1_0(MetadataBuilder builder, MetadataReader _)
    at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TItem item, Func`3 read)
    at Mono.Cecil.ModuleWriter.WriteModuleTo(ModuleDefinition module, Stream stream, WriterParameters parameters)
    at Mono.Cecil.ModuleDefinition.Write(String fileName, WriterParameters parameters)
    at Mono.Linker.Steps.OutputStep.OutputAssembly(AssemblyDefinition assembly)
    at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
    at Mono.Linker.Pipeline.Process(LinkContext context)
    at Mono.Linker.Driver.RunDriver(Driver driver, IEqualityComparer`1 typeComparer, IEqualityComparer`1 methodComparer)
    stderr:

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:102)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.HostView:OnGUI()

    Error 2

    Exception: C:\Program Files\Unity\Editor\Data\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, System.Action`1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (IEnumerable`1 args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:102)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:768)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:586)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (PostProcessorSettings postProcessorSettings, BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:546)
    UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:34)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, 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, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    UnityEditor.HostView:OnGUI()
     
  19. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    This error looks a bit different than some others in this thread. I believe the error message that matters is:

    Member 'DG.Tweening.Tween' is declared in another module and needs to be imported

    I think this is from the DOTween code (http://dotween.demigiant.com/index.php). Are you using this code in your project? It looks like you have something using it, but it is not present.
     
  20. Dev_Ankit

    Dev_Ankit

    Joined:
    Nov 17, 2016
    Posts:
    5
    Thank you for replying, I tried to reimport Dotween asset this time it's a new problem while building Unity freezes at converting managed assemblies to c++
    please help
     
  21. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    It seems like you are further in the build process now. What platform are you targeting?
     
  22. Dev_Ankit

    Dev_Ankit

    Joined:
    Nov 17, 2016
    Posts:
    5
    iOS IL2CPP backend and Universal Architecture
     
  23. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Thanks. I'm not sure why Unity freezes. It might be that the operation is taking a rather long time. Can you using htop or Activity Monitor to see if Unity is doing anything at the time.
     
  24. Dev_Ankit

    Dev_Ankit

    Joined:
    Nov 17, 2016
    Posts:
    5
    I updated my Unity to 5.6.1 which fixed me this issue. Thanks for all your help
     
  25. marcipw

    marcipw

    Joined:
    Apr 18, 2013
    Posts:
    239
    Thank you. You saved my bacon.
     
  26. Lt_Dank

    Lt_Dank

    Joined:
    Jan 4, 2017
    Posts:
    4
    Hi I've been facing a similar problem, We are using Asset Bundle to handle our data and few additional libraries with it.
    The same project is working seamless for Android builds.
    Here are the following errors :

    Error 1

    Code (CSharp):
    1. Failed running /Applications/Unity/Unity.app/Contents/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe --api NET_2_0_Subset -out "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/tempStrip" -l none -c link -b true -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -f "/Applications/Unity/Unity.app/Contents/il2cpp/LinkerDescriptors" -x "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/preserved_derived_types.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/AI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Animation.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Audio.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Cloth.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/CrashReporting.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/IMGUI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Input.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/JSONSerialize.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ParticleSystem.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/ParticlesLegacy.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/PerformanceReporting.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Physics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Physics2D.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Terrain.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/TerrainPhysics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/TextRendering.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UNET.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityAds.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityAnalytics.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityConnect.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequest.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/UnityWebRequestAudio.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/VR.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Vehicles.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Video.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Web.xml" -d "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed" -a  "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a  "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a  "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/Assembly-UnityScript.dll" -a  "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a  "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/UnityEngine.Analytics.dll" -a  "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/DOTween.dll" -a  "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/Facebook.Unity.Settings.dll" -a  "/Work/backup/AssetBundleUpdate3 copy/Temp/StagingArea/Data/Managed/TextMeshPro-1.0.55.56.0b11.dll"
    2.  
    3. stdout:
    4. SweepReport:
    5. Mono.Cecil.MethodDefinition (12999) => FieldType Get(System.String), System.Void SetStatic(System.String,FieldType), System.Void DebugPrint(System.String,System.String,System.String,System.Object[]), FieldType _Get(System.String), System.Void _SetStatic(System.String,FieldType), ...
    6. Mono.Cecil.TypeDefinition (2438) => UnityEngine.WeakListenerBindings, UnityEngine.NetworkReachability, UnityEngine.UserAuthorization, UnityEngine.ApplicationInstallMode, UnityEngine.ApplicationSandboxType, ...
    7. Mono.Cecil.FieldDefinition (1086) => UnityEngine.Application/AdvertisingIdentifierCallback OnAdvertisingIdentifierCallback, UnityEngine.Application/LogCallback modreq(System.Runtime.CompilerServices.IsVolatile) s_RegisterLogCallbackDeprecated, System.String unsupportedIdentifier, System.Byte kIsVisibleMask, System.Byte kDistanceMask, ...
    8. Fatal error in Mono CIL Linker
    9. System.ArgumentException: Member 'UnityEngine.ILogger' is declared in another module and needs to be imported
    10.   at Mono.Cecil.MetadataBuilder.LookupToken (Mono.Cecil.IMetadataTokenProvider provider) [0x00027] in <0304696c64424476882bed0a697f98eb>:0
    11.   at Mono.Cecil.SignatureWriter.MakeTypeDefOrRefCodedRID (Mono.Cecil.TypeReference type) [0x00000] in <0304696c64424476882bed0a697f98eb>:0
    12.   at Mono.Cecil.SignatureWriter.WriteTypeSignature (Mono.Cecil.TypeReference type) [0x00161] in <0304696c64424476882bed0a697f98eb>:0
    13.   at Mono.Cecil.SignatureWriter.WriteMethodSignature (Mono.Cecil.IMethodSignature method) [0x00085] in <0304696c64424476882bed0a697f98eb>:0
    14.   at Mono.Cecil.MetadataBuilder.GetMethodSignature (Mono.Cecil.IMethodSignature method) [0x00006] in <0304696c64424476882bed0a697f98eb>:0
    15.   at Mono.Cecil.MetadataBuilder.AddMethod (Mono.Cecil.MethodDefinition method) [0x0003c] in <0304696c64424476882bed0a697f98eb>:0
    16.   at Mono.Cecil.MetadataBuilder.AddMethods (Mono.Cecil.TypeDefinition type) [0x00013] in <0304696c64424476882bed0a697f98eb>:0
    17.   at Mono.Cecil.MetadataBuilder.AddType (Mono.Cecil.TypeDefinition type) [0x000a2] in <0304696c64424476882bed0a697f98eb>:0
    18.   at Mono.Cecil.MetadataBuilder.AddTypeDefs () [0x00018] in <0304696c64424476882bed0a697f98eb>:0
    19.   at Mono.Cecil.MetadataBuilder.BuildTypes () [0x00014] in <0304696c64424476882bed0a697f98eb>:0
    20.   at Mono.Cecil.MetadataBuilder.BuildModule () [0x0007e] in <0304696c64424476882bed0a697f98eb>:0
    21.   at Mono.Cecil.MetadataBuilder.BuildMetadata () [0x00000] in <0304696c64424476882bed0a697f98eb>:0
    22.   at Mono.Cecil.ModuleWriter+<>c.<BuildMetadata>b__1_0 (Mono.Cecil.MetadataBuilder builder, Mono.Cecil.MetadataReader _) [0x00000] in <0304696c64424476882bed0a697f98eb>:0
    23.   at Mono.Cecil.ModuleDefinition.Read[TItem,TRet] (TItem item, System.Func`3[T1,T2,TResult] read) [0x00029] in <0304696c64424476882bed0a697f98eb>:0
    24.   at Mono.Cecil.ModuleWriter.BuildMetadata (Mono.Cecil.ModuleDefinition module, Mono.Cecil.MetadataBuilder metadata) [0x0000f] in <0304696c64424476882bed0a697f98eb>:0
    25.   at Mono.Cecil.ModuleWriter.WriteModuleTo (Mono.Cecil.ModuleDefinition module, System.IO.Stream stream, Mono.Cecil.WriterParameters parameters) [0x000b7] in <0304696c64424476882bed0a697f98eb>:0
    26.   at Mono.Cecil.ModuleDefinition.Write (System.IO.Stream stream, Mono.Cecil.WriterParameters parameters) [0x00022] in <0304696c64424476882bed0a697f98eb>:0
    27.   at Mono.Cecil.ModuleDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x0000a] in <0304696c64424476882bed0a697f98eb>:0
    28.   at Mono.Cecil.AssemblyDefinition.Write (System.String fileName, Mono.Cecil.WriterParameters parameters) [0x00000] in <0304696c64424476882bed0a697f98eb>:0
    29.   at Mono.Linker.Steps.OutputStep.OutputAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x0004d] in <6b6a6b3d682b49c4a8b0c4f50e76a8a6>:0
    30.   at Mono.Linker.Steps.OutputStep.ProcessAssembly (Mono.Cecil.AssemblyDefinition assembly) [0x00001] in <6b6a6b3d682b49c4a8b0c4f50e76a8a6>:0
    31.   at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00031] in <6b6a6b3d682b49c4a8b0c4f50e76a8a6>:0
    32.   at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00019] in <6b6a6b3d682b49c4a8b0c4f50e76a8a6>:0
    33.   at Mono.Linker.Driver.Run (System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x003e2] in <6b6a6b3d682b49c4a8b0c4f50e76a8a6>:0
    34.   at Mono.Linker.Driver.RunDriverWithErrorHandling (Mono.Linker.Driver driver, System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x00001] in <6b6a6b3d682b49c4a8b0c4f50e76a8a6>:0
    35.   at Mono.Linker.Driver.RunDriver (Mono.Linker.Driver driver, System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x00002] in <6b6a6b3d682b49c4a8b0c4f50e76a8a6>:0
    36. stderr:
    37.  
    38. UnityEngine.Debug:LogError(Object)
    39. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    40. UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:102)
    41. UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    42. UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    43. UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    44. UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    45. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    46. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
    47.  
    Error 2
    Code (CSharp):
    1. Exception: /Applications/Unity/Unity.app/Contents/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!
    2. UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98)
    3. 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/AssemblyStripper.cs:102)
    4. UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    5. UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    6. UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    7. UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    8. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    9. UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:768)
    10. UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:586)
    11. UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (PostProcessorSettings postProcessorSettings, BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:546)
    12. UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:34)
    13. UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, 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, UnityEditor.BuildReporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    14. UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
    15.  

    Any kind of help or pointers would be useful.
     
  27. Lt_Dank

    Lt_Dank

    Joined:
    Jan 4, 2017
    Posts:
    4
    Fixed the issue by creating a new project all together and just importing the Assets into new project, i guess some project files were corrupted. :)
     
    viktouille likes this.
  28. URGr8

    URGr8

    Joined:
    Sep 10, 2012
    Posts:
    25
    Hi I am using Unity 5.6.4.P4 and I am getting this error when it strips in IL2CPP. I never seen this before. This is when compiling out for an Android build.

    Error 1
    Code (CSharp):
    1. Failed running C:\Program Files (x86)\Unity5\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe --api NET_2_0 -out "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\Managed\tempStrip" -l none -c link -b true -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Core.xml" -f "C:\Program Files (x86)\Unity5\Editor\Data\il2cpp\LinkerDescriptors" -x "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\Managed\..\platform_native_link.xml" -x "E:\Unity5\OwlGame-NicoNotesBabies-Final/Temp/StagingArea\assets\bin\Data/methods_pointedto_by_uievents.xml" -x "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\preserved_derived_types.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\AI.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Animation.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Audio.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Cloth.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Core.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\CrashReporting.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\IMGUI.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Input.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\JSONSerialize.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\ParticlesLegacy.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\ParticleSystem.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\PerformanceReporting.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Physics.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Physics2D.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Terrain.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\TerrainPhysics.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\TextRendering.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UI.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UNET.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityAds.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityAnalytics.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityConnect.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityWebRequest.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityWebRequestAudio.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Vehicles.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Video.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\VR.xml" -x "C:\Program Files (x86)\Unity5\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Web.xml" -d "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\Managed" -a  "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp-firstpass.dll" -a  "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\Managed\Assembly-CSharp.dll" -a  "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\Managed\Assembly-UnityScript-firstpass.dll" -a  "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\Managed\Assembly-UnityScript.dll" -a  "E:\Unity5\OwlGame-NicoNotesBabies-Final\Temp\StagingArea\assets\bin\Data\Managed\UnityEngine.Analytics.dll"
    2.  
    3. stdout:
    4. SweepReport:
    5. Mono.Cecil.TypeDefinition (3048) => UnityEngine.AndroidInput, UnityEngine.WeakListenerBindings, UnityEngine.UserAuthorization, UnityEngine.ApplicationInstallMode, UnityEngine.ApplicationSandboxType, ...
    6. Mono.Cecil.FieldDefinition (941) => AdvertisingIdentifierCallback OnAdvertisingIdentifierCallback, System.String unsupportedIdentifier, System.Byte kIsVisibleMask, System.Byte kDistanceMask, System.Int32 TRIANGLES, ...
    7. Mono.Cecil.MethodDefinition (13308) => System.Void .ctor(), System.Void add_lowMemory(UnityEngine.Application/LowMemoryCallback), System.Void remove_lowMemory(UnityEngine.Application/LowMemoryCallback), System.Void Quit(), System.Void CancelQuit(), ...
    8. Fatal error in Mono CIL Linker
    9. Mono.Cecil.ResolutionException: Failed to resolve UnityEngine.ImageConversion
    10.    at UnusedBytecodeStripper2.AddUnresolvedStubsStep.Process()
    11.    at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
    12.    at Mono.Linker.Pipeline.Process(LinkContext context)
    13.    at Mono.Linker.Driver.RunDriver(Driver driver, IEqualityComparer`1 typeComparer, IEqualityComparer`1 methodComparer)
    14. stderr:
    15.  
    16. UnityEngine.Debug:LogError(Object)
    17. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    18. UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:102)
    19. UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    20. UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    21. UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    22. UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    23. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    24. UnityEditor.HostView:OnGUI()
    25.  

    Error 2
    Code (CSharp):
    1. Exception: C:\Program Files (x86)\Unity5\Editor\Data\Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe did not run properly!
    2. UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98)
    3. UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (IEnumerable`1 args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:102)
    4. UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    5. UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    6. UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    7. UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    8. UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    9. UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    10. UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    11. UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
    12. UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
    13. UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, 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, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    14. UnityEditor.HostView:OnGUI()
    15.  
    Has anyone else seen this?
     
    Last edited: Jan 3, 2018
  29. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    I'm not sure about the exact cause, but we have seen similar errors when an assembly in the project is not updated correctly for a new version of the Unity API. You might be able to correct this by re-importing any assemblies in the project.
     
  30. URGr8

    URGr8

    Joined:
    Sep 10, 2012
    Posts:
    25
  31. adu726

    adu726

    Joined:
    Feb 6, 2018
    Posts:
    2
    I am stuck and not sure if I have the same problem as everyone else or where is the solution.

    Keep getting this error anytime I try and build and run my application for the iOS platform.

    error 1:
    Failed running /Applications/Unity/Unity.app/Contents/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe --api NET_2_0 -out "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed/tempStrip" -l none -c link -b true -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -f "/Applications/Unity/Unity.app/Contents/il2cpp/LinkerDescriptors" -x "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/preserved_derived_types.xml" -d "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed" -a "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed/UnityEngine.Analytics.dll" -a "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed/ES2.dll" -a "/Users/Shared/Unity/Circle Rotate 2/Temp/StagingArea/Data/Managed/PlayMaker.dll"

    stdout:
    SweepReport:
    Mono.Cecil.TypeDefinition (3016) => UnityEngine.AndroidJavaObject, UnityEngine.AndroidJavaClass, UnityEngine.jvalue, UnityEngine.AndroidJNIHelper, UnityEngine.AndroidJNI, ...
    Mono.Cecil.FieldDefinition (939) => AdvertisingIdentifierCallback OnAdvertisingIdentifierCallback, UnityEngine.Application/LogCallback modreq(System.Runtime.CompilerServices.IsVolatile) s_RegisterLogCallbackDeprecated, System.String unsupportedIdentifier, System.Byte kIsVisibleMask, System.Byte kDistanceMask, ...
    Mono.Cecil.MethodDefinition (12341) => System.Void .ctor(), System.Void add_lowMemory(UnityEngine.Application/LowMemoryCallback), System.Void remove_lowMemory(UnityEngine.Application/LowMemoryCallback), System.Void CancelQuit(), System.Void Unload(), ...
    Fatal error in Mono CIL Linker
    Mono.Cecil.ResolutionException: Failed to resolve UnityEngine.ImageConversion
    at UnusedBytecodeStripper2.AddUnresolvedStubsStep.Process () [0x000ab] in <8288c42737d44a4799e8c99e6e64112b>:0
    at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00018] in <8288c42737d44a4799e8c99e6e64112b>:0
    at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00019] in <8288c42737d44a4799e8c99e6e64112b>:0
    at Mono.Linker.Driver.Run (System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x003e2] in <8288c42737d44a4799e8c99e6e64112b>:0
    at Mono.Linker.Driver.RunDriverWithErrorHandling (Mono.Linker.Driver driver, System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x00001] in <8288c42737d44a4799e8c99e6e64112b>:0
    at Mono.Linker.Driver.RunDriver (Mono.Linker.Driver driver, System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x00002] in <8288c42737d44a4799e8c99e6e64112b>:0
    stderr:

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:102)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.HostView:OnGUI()

    Error 2:
    Exception: /Applications/Unity/Unity.app/Contents/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, System.Action`1 setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98)
    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/AssemblyStripper.cs:102)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:768)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:586)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (PostProcessorSettings postProcessorSettings, BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:546)
    UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:34)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, 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, UnityEditor.BuildReporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    UnityEditor.HostView:OnGUI()

    Please help me i tried different things but not working!!!!
     
  32. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    It looks like the relevant part of the error message is:

    Fatal error in Mono CIL Linker
    Mono.Cecil.ResolutionException: Failed to resolve UnityEngine.ImageConversion

    This can happen when an assembly into the project was built against an older version of the Unity API, and the API Updater tool has not be run on that assembly to correct it. You can manually run the tool by right-clicking on the assembly in the project and choosing the "Re-import" option.

    Unfortunately, it is not clear from the error message which assembly is causing the problem, so you may need to try this which each of them.
     
  33. adu726

    adu726

    Joined:
    Feb 6, 2018
    Posts:
    2
    Thanks for responding will try both and see what outcome I get. Cheers
     
  34. stijflijk

    stijflijk

    Joined:
    Jul 30, 2014
    Posts:
    2
    Hello guys, I started getting this error after upgrading to macOS High Sierra, I tried all the workarounds mentioned in here, but none of them worked, using unity 5.4.3f1, I upgraded to unity 2017.3 and created an empty project and I wasn't able to build, I was getting the same error, I had to downgrade to Sierra and the problem went away...
     
  35. j_pine

    j_pine

    Joined:
    Oct 28, 2015
    Posts:
    2
    Hi, me too. I didnt google first for any problem and updated to High sierra to get latest xcode with ios 11sdk. Well then the problems started, looks like there is ZERO unity versions that works with High sierra. Cant build anything with any version of Unity. The first problem was that Unity does not work with the new filesystem of High sierra. So I had to create new partition as HFS+ to actually even get anything visible in Unity. Even if Unity someday fixes this they do not fix for the version I am using currently :( Starting the downgrading osx now.
     
  36. anakpintarstudio

    anakpintarstudio

    Joined:
    Jul 30, 2019
    Posts:
    2
    Hi,
    This is the first time I am doing project with Facebook SDK. I have no problem running it on Android, but now I'm stuck when building the project to iOS. I got error when I try to build the project from Unity. I'm using Unity 5.6.5 and Facebook SDK 7.1.7. I got 2 error message:
    First:
    Failed running /Applications/Unity/Unity.app/Contents/Tools/UnusedByteCodeStripper2/UnusedBytecodeStripper2.exe --api NET_2_0_Subset -out "/Volumes/data/FBSDKProject/Temp/StagingArea/Data/Managed/tempStrip" -l none -c link -b true -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -f "/Applications/Unity/Unity.app/Contents/il2cpp/LinkerDescriptors" -x "/Volumes/data/FBSDKProject/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Volumes/data/FBSDKProject/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Volumes/data/FBSDKProject/Temp/StagingArea/Data/preserved_derived_types.xml" -x "/Volumes/data/FBSDKProject/Assets/FacebookSDK/link.xml" -d "/Volumes/data/FBSDKProject/Temp/StagingArea/Data/Managed" -a "/Volumes/data/FBSDKProject/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a "/Volumes/data/FBSDKProject/Temp/StagingArea/Data/Managed/Facebook.Unity.Settings.dll"

    stdout:
    SweepReport:
    Mono.Cecil.MethodDefinition (10194) => System.Void .ctor(System.String,System.Object[]), System.Void Call(System.String,System.Object[]), FieldType Get(System.String), System.Void Set(System.String,FieldType), FieldType GetStatic(System.String), ...
    Mono.Cecil.TypeDefinition (2241) => UnityEngine.WeakListenerBindings, UnityEngine.NetworkReachability, UnityEngine.UserAuthorization, UnityEngine.ApplicationInstallMode, UnityEngine.ApplicationSandboxType, ...
    Mono.Cecil.FieldDefinition (821) => AdvertisingIdentifierCallback OnAdvertisingIdentifierCallback, UnityEngine.Application/LogCallback modreq(System.Runtime.CompilerServices.IsVolatile) s_RegisterLogCallbackDeprecated, System.String unsupportedIdentifier, System.Byte kIsVisibleMask, System.Byte kDistanceMask, ...
    Fatal error in Mono CIL Linker
    Mono.Cecil.ResolutionException: Failed to resolve UnityEngine.ImageConversion
    at UnusedBytecodeStripper2.AddUnresolvedStubsStep.Process () [0x000ab] in <0ea3eec1f12c48dc9a22322cc08ccdc5>:0
    at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00018] in <0ea3eec1f12c48dc9a22322cc08ccdc5>:0
    at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00019] in <0ea3eec1f12c48dc9a22322cc08ccdc5>:0
    at Mono.Linker.Driver.Run (System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x003e2] in <0ea3eec1f12c48dc9a22322cc08ccdc5>:0
    at Mono.Linker.Driver.RunDriverWithErrorHandling (Mono.Linker.Driver driver, System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x00001] in <0ea3eec1f12c48dc9a22322cc08ccdc5>:0
    at Mono.Linker.Driver.RunDriver (Mono.Linker.Driver driver, System.Collections.Generic.IEqualityComparer`1[T] typeComparer, System.Collections.Generic.IEqualityComparer`1[T] methodComparer) [0x00002] in <0ea3eec1f12c48dc9a22322cc08ccdc5>:0
    stderr:

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:96)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:102)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.HostView:OnGUI()

    and second:
    Exception: /Applications/Unity/Unity.app/Contents/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, System.Action`1 setupStartInfo) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:98)
    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/AssemblyStripper.cs:102)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String[] assemblies, System.String[] searchDirs, System.String outputFolder, System.String workingDirectory, System.String& output, System.String& error, System.String linkerPath, IIl2CppPlatformProvider platformProvider, IEnumerable`1 additionalBlacklist) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:95)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:201)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:126)
    UnityEditorInternal.IL2CPPBuilder.Run () (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.iOS.PostProcessiPhonePlayer.CrossCompileManagedDlls (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.AssemblyReferenceChecker checker, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:785)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildSettings bs, UnityEditor.iOS.ProjectPaths paths, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport buildReport) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:603)
    UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (PostProcessorSettings postProcessorSettings, BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:563)
    UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:34)
    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, 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, UnityEditor.BuildReporting.BuildReport report) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    UnityEditor.HostView:OnGUI()

    I already tried reimporting the entire Assets folder, changing IL2CPP to Mono, Deleting link.xml, and all the solution above, and nothing is work.
    Note: The project is just an empty project with Facebook SDK only, so there are no other plugins or library.
     
  37. anakpintarstudio

    anakpintarstudio

    Joined:
    Jul 30, 2019
    Posts:
    2
    I have updated Facebook SDK 7.17.1 to Facebook SDK 7.17.2 (realesed 18 days ago) and it solve. Thanks for support. :)