Search Unity

Fatal error in Unity CIL Linker (2017.3.0f3)

Discussion in 'iOS and tvOS' started by eppz, Dec 23, 2017.

  1. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    I Updated to Unity 22017.3.0f3, Unity IAP 1.15.0, now I cannot iOS build anymore.

    What should I attempt to fix this (error below)?
    Are there any patches out there?

    I'm on MacOS Sierra 10.12.6 (16G29), Unity 2017.3.0f3 (Unity IAP 1.15.0).

    Code (CSharp):
    1. Failed running /Applications/Unity/Unity.app/Contents/il2cpp/build/UnityLinker.exe --api=NET_2_0_Subset -out="/Users/eppz/Projects/Unity/Production/tangram/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/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/UnityEngine.xml" -x "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/preserved_derived_types.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/AI.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/AR.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Accessibility.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Animation.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/AssetBundle.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/Grid.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/SharedInternals.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/SpriteMask.xml" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/SpriteShape.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/Tilemap.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" -x "/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Wind.xml" -x "/Users/eppz/Projects/Unity/Production/tangram/Assets/Plugins/UnityPurchasing/script/link.xml" -d "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/Managed" -a  "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a  "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a  "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a  "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/Managed/UnityEngine.Advertisements.dll" -a  "/Users/eppz/Projects/Unity/Production/tangram/Temp/StagingArea/Data/Managed/UnityEngine.Analytics.dll"
    2.  
    3. stdout:
    4. Fatal error in Unity CIL Linker
    5. System.NullReferenceException: Object reference not set to an instance of an object
    6.   at UnityLinker.AddUnresolvedStubsStep.GetTypeModule (Mono.Cecil.TypeReference type, Mono.Cecil.AssemblyDefinition[] assemblies) [0x00001] in <e329073fad664455a4af82f7763fe28e>:0
    7.   at UnityLinker.AddUnresolvedStubsStep.GetTypeModule (Mono.Cecil.TypeReference type) [0x00001] in <e329073fad664455a4af82f7763fe28e>:0
    8.   at UnityLinker.AddUnresolvedStubsStep.Process () [0x000b5] in <e329073fad664455a4af82f7763fe28e>:0
    9.   at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00018] in <2eb3e637aba84583bf98dc730423517b>:0
    10.   at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00020] in <2eb3e637aba84583bf98dc730423517b>:0
    11.   at UnityLinker.UnityDriver.Run () [0x00086] in <e329073fad664455a4af82f7763fe28e>:0
    12.   at UnityLinker.UnityDriver.RunDriverWithoutErrorHandling () [0x00001] in <e329073fad664455a4af82f7763fe28e>:0
    13.   at UnityLinker.UnityDriver.RunDriver () [0x00002] in <e329073fad664455a4af82f7763fe28e>:0
    14. stderr:
    15.  
    16. UnityEngine.Debug:LogError(Object)
    17. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    18. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    19. UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:89)
    20. 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)
    21. UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:204)
    22. UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:114)
    23. UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:152)
    24. UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    25. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    I tried stuff like ON / OFF both Symlink Unity Libraries, Development Build, Strip Engine Code, also Updated / Imported / Reimported Unity IAP.

    Anyone encountered similar stuff with some kind of resolution?
     
    Last edited: Dec 23, 2017
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,620
    Unity released patch 2017.3.0p1 just yesterday:
    https://unity3d.com/unity/qa/patch-releases

    However, I don't know whether it solves the problem you're experiencing. I believe the hotfix release was mostly done due to increasing PackageManager issues.
     
    Last edited: Dec 23, 2017
  3. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    Thanks, I'll give it a try. Indeed, the release notes seems not to mention build related stuff like this.
     
  4. GeorgeCH

    GeorgeCH

    Joined:
    Oct 5, 2016
    Posts:
    222
    I had the same problem after upgrading from 2017.1 to 2017.3. Updating to 0p1 didn't fix it, but disabling and then re-enabling all the services running on my project (IAP, Ads, Cloud Build, and Analytics) did. Note that I had to reimport the IAP package, too.
     
    eppz likes this.
  5. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    @GeorgeCH Thanks, I'll try this.
    Did you recreate the Unity Project ID as well?
     
    Last edited: Dec 24, 2017
  6. GeorgeCH

    GeorgeCH

    Joined:
    Oct 5, 2016
    Posts:
    222
    Nope. Simply disabled and then enabled the aforementioned services, restarted Unity, and everything was working swimmingly.

    Oh, another thing I noticed is that 2017.3 seems to take platform-dependent compilation a bit more seriously - I had two chunks of code that I had to explicitly put into the #if UNITY_IOS conditional, otherwise Android builds were failing where they previously did not.
     
  7. mike-voorhees

    mike-voorhees

    Unity Technologies

    Joined:
    Aug 9, 2016
    Posts:
    47
    This exception is related to some new situations the engine is putting our UnityLinker in. The error handling in UnityLinker was improved to deal with these new cases in our mainline as 2017.3 was reach final release. We did not realize how prevalent these situations were and so we initially chose to be cautious about back porting the change. Once more reports came in, we back ported the change to 2017.2 and 2017.3. The fix would have been in the first 2017.3 patch release, however, the p1 patch ended up being more of a hotfix.

    The fix will be in 2017.3p2 and 2017.2.1p2
     
    mikejohnstn and eppz like this.
  8. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    Wow, thanks for getting back!
    Could you please estimate a release date for 2017.3p2?
     
  9. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    @mike-voorhees Could you please confirm if I downgrade to 2017.1, will the issue go away?
     
  10. canek

    canek

    Joined:
    Sep 13, 2014
    Posts:
    21
    We are experiencing the same problem which is seriously affecting our development. This is a major issue so I was also wondering if you have an estimated date for the release of the patch. We are unable to test our iOS app and we require Vuforia 7 so downgrading is not an option.

    Thanks.
     
    eppz likes this.
  11. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    @canek Didn't you experience issues with importing Unity IAP? The linker issue has gone for me after I manually copied IAP from an empty project into the damaged one (2017.2.1).
     
  12. canek

    canek

    Joined:
    Sep 13, 2014
    Posts:
    21
    @eppz Does this work regardless of our project not using In App Purchases? Thanks!
     
  13. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    Are you using any Unity Service (analytics perhaps)? Issue could be related to that. Still no patch unfortunately.
     
  14. canek

    canek

    Joined:
    Sep 13, 2014
    Posts:
    21
    No, no cloud services activated.
     
  15. eppz

    eppz

    Joined:
    Aug 2, 2014
    Posts:
    172
    Wow, than it may be connected to native features / plugins instead.

    Did you manage to filter out what should cause the issue at your project?
    By removing project components one by one until compilation works again.
     
  16. canek

    canek

    Joined:
    Sep 13, 2014
    Posts:
    21
    The project was started in 2017.2 and it's too large to do this kind of debugging without investing too much time deleting plugins and disabling scripts across several scenes. We decided to put the Vuforia 7 integration on hold and revert to 2017.2 where the project now builds fine again. Hopefully the patch will come out soon. It's unfortunate that the error logs don't provide much detail about exactly what component is making it fail.
     
    eppz likes this.
  17. peter-motive

    peter-motive

    Joined:
    Jul 16, 2016
    Posts:
    26
    Running into the same issue. Any update on the patch would be appreciated.
     
  18. raydekk

    raydekk

    Joined:
    Mar 14, 2013
    Posts:
    100
    Same here on Windows 10/Android build. Weird thing is that I updated two of my projects, that are very similar regarding assets and only one has this problem. Will check it out on the p2 patch when it's available.
    Code (CSharp):
    1. stdout:
    2. Fatal error in Unity CIL Linker
    3. System.NullReferenceException: Object reference not set to an instance of an object.
    4.    at UnityLinker.AddUnresolvedStubsStep.GetTypeModule(TypeReference type, AssemblyDefinition[] assemblies)
    5.    at UnityLinker.AddUnresolvedStubsStep.Process()
    6.    at Mono.Linker.Steps.BaseStep.Process(LinkContext context)
    7.    at Mono.Linker.Pipeline.Process(LinkContext context)
    8.    at UnityLinker.UnityDriver.Run()
    9.    at UnityLinker.UnityDriver.RunDriver()
    10. stderr:
    11.  
    12. UnityEngine.Debug:LogError(Object)
    13. UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
    14. UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    15. UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:89)
    16. UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:82)
    17. UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:204)
    18. UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:114)
    19. UnityEditorInternal.AssemblyStripper:InvokeFromBuildPlayer(BuildTarget, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:313)
    20. UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  19. raydekk

    raydekk

    Joined:
    Mar 14, 2013
    Posts:
    100
    I can confirm that the error is gone on 2017.3.0p2
     
    eppz and LampRabbit like this.
  20. canek

    canek

    Joined:
    Sep 13, 2014
    Posts:
    21
    Thank you for fixing this. 2017.3.0p2 fixes it for me too.
     
    eppz likes this.
  21. big_3

    big_3

    Joined:
    Apr 20, 2016
    Posts:
    88
    No, bug is NOT fixed for me.:(

    Code (CSharp):
    1. Fatal error in Unity CIL Linker
    2. Mono.Linker.MarkException: Error processing method: 'System.Void UnityEngine.Analytics.StandardEventPayload::.ctor()' in assembly: 'UnityEngine.Analytics.dll' ---> System.ArgumentNullException: Der Wert darf nicht NULL sein.
    3. Parametername: instruction
    4.    bei Mono.Cecil.Cil.InstructionOffset..ctor(Instruction instruction)
    5.    bei Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
    6.    bei Mono.Cecil.Cil.CodeReader.ReadScopes(Collection`1 scopes)
    7.    bei Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
    8.    bei Mono.Cecil.Cil.CodeReader.ReadScopes(Collection`1 scopes)
    9.    bei Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
    10.    bei Mono.Cecil.Cil.CodeReader.ReadDebugInfo()
    11.    bei Mono.Cecil.Cil.CodeReader.ReadMethodBody()
    12.    bei Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method)
    13.    bei Mono.Cecil.MethodDefinition.<>c.<get_Body>b__41_0(MethodDefinition method, MetadataReader reader)
    14.    bei Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)
    15.    bei Mono.Cecil.MethodDefinition.get_Body()
    16.    bei Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
    17.    bei UnityLinker.Steps.UnityMarkStep.ProcessMethod(MethodDefinition method)
    18.    bei Mono.Linker.Steps.MarkStep.ProcessQueue()
    19.    --- Ende der internen Ausnahmestapel�berwachung ---
    20.    bei Mono.Linker.Steps.MarkStep.ProcessQueue()
    21.    bei Mono.Linker.Steps.MarkStep.ProcessEntireQueue()
    22.    bei Mono.Linker.Steps.MarkStep.Process()
    23.    bei UnityLinker.Steps.UnityMarkStep.Process(LinkContext context)
    24.    bei Mono.Linker.Pipeline.Process(LinkContext context)
    25.    bei UnityLinker.UnityDriver.Run()
    26.    bei UnityLinker.UnityDriver.RunDriver()
    27.  
     
  22. RogueCode

    RogueCode

    Joined:
    Apr 3, 2013
    Posts:
    230
    @mike-voorhees I'm getting the same building for Windows Store on Unity 2017.3.0p2

    Code (CSharp):
    1. Fatal error in Unity CIL Linker
    2. Mono.Linker.MarkException: Error processing method: 'System.Void DG.Tweening.TweenExtensions::Kill(DG.Tweening.Tween,System.Boolean)' in assembly: 'DOTween.dll' ---> System.ArgumentNullException: Value cannot be null.
    3. Parameter name: instruction
    4.    at Mono.Cecil.Cil.InstructionOffset..ctor(Instruction instruction)
    5.    at Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
    6.    at Mono.Cecil.Cil.CodeReader.ReadScopes(Collection`1 scopes)
    7.    at Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
    8.    at Mono.Cecil.Cil.CodeReader.ReadScopes(Collection`1 scopes)
    9.    at Mono.Cecil.Cil.CodeReader.ReadScope(ScopeDebugInformation scope)
    10.    at Mono.Cecil.Cil.CodeReader.ReadDebugInfo()
    11.    at Mono.Cecil.Cil.CodeReader.ReadMethodBody()
    12.    at Mono.Cecil.Cil.CodeReader.ReadMethodBody(MethodDefinition method)
    13.    at Mono.Cecil.MethodDefinition.<>c.<get_Body>b__41_0(MethodDefinition method, MetadataReader reader)
    14.    at Mono.Cecil.ModuleDefinition.Read[TItem,TRet](TRet& variable, TItem item, Func`3 read)
    15.    at Mono.Cecil.MethodDefinition.get_Body()
    16.    at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
    17.    at UnityLinker.Steps.UnityMarkStep.ProcessMethod(MethodDefinition method)
    18.    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    19.    --- End of inner exception stack trace ---
    20.    at Mono.Linker.Steps.MarkStep.ProcessQueue()
    21.    at Mono.Linker.Steps.MarkStep.ProcessEntireQueue()
    22.    at Mono.Linker.Steps.MarkStep.Process()
    23.    at UnityLinker.Steps.UnityMarkStep.Process(LinkContext context)
    24.    at Mono.Linker.Pipeline.Process(LinkContext context)
    25.    at UnityLinker.UnityDriver.Run()
    26.    at UnityLinker.UnityDriver.RunDriver()
    27. stderr:
    28.  
    29.  
     
  23. raydekk

    raydekk

    Joined:
    Mar 14, 2013
    Posts:
    100
    @RogueCode @big_3 have you tried deleting Unity Analytics/DOTween and reimporting them?
     
  24. RogueCode

    RogueCode

    Joined:
    Apr 3, 2013
    Posts:
    230
    I disabled Analytics. But no, I didn't try reimporting DOTween.
    I've switched to 2017.2 for now since I have to be able to build.
     
  25. raydekk

    raydekk

    Joined:
    Mar 14, 2013
    Posts:
    100
    I'm also using DOTween Pro, and I don't have that error when building.
    Well, whenever you feel like trying 2017.3.0 again and you still have the error, try to delete DOTween's folder and reimport the latest version.
     
    RogueCode likes this.
  26. jisomark

    jisomark

    Joined:
    Dec 12, 2013
    Posts:
    10
    Getting the same linker error when building for iOS from several included asset packages in the project in Unity 2017.3p2. Everything was building fine in 2017.1.

    17:17:27 stdout:
    17:17:27 Fatal error in Unity CIL Linker
    17:17:27 Mono.Linker.MarkException: Error processing method: 'System.String Newtonsoft.Json.JsonContainerAttribute::get_Title()' in assembly: 'Assembly-CSharp.dll' ---> System.ArgumentNullException: Value cannot be null.
    17:17:27 Parameter name: instruction
    17:17:27 at Mono.Cecil.Cil.InstructionOffset..ctor (Mono.Cecil.Cil.Instruction instruction) [0x00003] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.Cil.CodeReader.ReadScope (Mono.Cecil.Cil.ScopeDebugInformation scope) [0x00015] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.Cil.CodeReader.ReadScopes (Mono.Collections.Generic.Collection`1[T] scopes) [0x0000c] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.Cil.CodeReader.ReadScope (Mono.Cecil.Cil.ScopeDebugInformation scope) [0x000af] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.Cil.CodeReader.ReadScopes (Mono.Collections.Generic.Collection`1[T] scopes) [0x0000c] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.Cil.CodeReader.ReadScope (Mono.Cecil.Cil.ScopeDebugInformation scope) [0x000af] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.Cil.CodeReader.ReadDebugInfo () [0x0002a] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.Cil.CodeReader.ReadMethodBody () [0x00091] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.Cil.CodeReader.ReadMethodBody (Mono.Cecil.MethodDefinition method) [0x00014] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.MetadataReader.ReadMethodBody (Mono.Cecil.MethodDefinition method) [0x00000] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.MethodDefinition+<>c.<get_Body>b__41_0 (Mono.Cecil.MethodDefinition method, Mono.Cecil.MetadataReader reader) [0x00000] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.ModuleDefinition.Read[TItem,TRet] (TRet& variable, TItem item, System.Func`3[T1,T2,TResult] read) [0x0003c] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Cecil.MethodDefinition.get_Body () [0x0002c] in <99a636aaf9994cf9a22f0334e6277be1>:0
    17:17:27 at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00199] in <2eb3e637aba84583bf98dc730423517b>:0
    17:17:27 at UnityLinker.Steps.UnityMarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x002b9] in <1c5a6a9d9114430d85bb9f22788b3702>:0
    17:17:27 at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00020] in <2eb3e637aba84583bf98dc730423517b>:0
    17:17:27 --- End of inner exception stack trace ---
    17:17:27 at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00051] in <2eb3e637aba84583bf98dc730423517b>:0
    17:17:27 at Mono.Linker.Steps.MarkStep.ProcessEntireQueue () [0x00007] in <2eb3e637aba84583bf98dc730423517b>:0
    17:17:27 at Mono.Linker.Steps.MarkStep.Process () [0x00017] in <2eb3e637aba84583bf98dc730423517b>:0
    17:17:27 at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x0000e] in <2eb3e637aba84583bf98dc730423517b>:0
    17:17:27 at UnityLinker.Steps.UnityMarkStep.Process (Mono.Linker.LinkContext context) [0x0000c] in <1c5a6a9d9114430d85bb9f22788b3702>:0
    17:17:27 at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00020] in <2eb3e637aba84583bf98dc730423517b>:0
    17:17:27 at UnityLinker.UnityDriver.Run () [0x00086] in <1c5a6a9d9114430d85bb9f22788b3702>:0
    17:17:27 at UnityLinker.UnityDriver.RunDriverWithoutErrorHandling () [0x00001] in <1c5a6a9d9114430d85bb9f22788b3702>:0
    17:17:27 at UnityLinker.UnityDriver.RunDriver () [0x00002] in <1c5a6a9d9114430d85bb9f22788b3702>:0
     
  27. TacoTruckGames

    TacoTruckGames

    Joined:
    Nov 26, 2016
    Posts:
    2
    I got the same issue when I moved to Unity 2017.3.0f3 even after upgrading to the latest DOTweenPro (I didn't try deleting). I downgraded back to Unity 2017.2.0f3 and it works again.
     
  28. benzsuankularb

    benzsuankularb

    Joined:
    Apr 10, 2013
    Posts:
    132
    This still happened in 2018.1b9
     
    eppz likes this.
  29. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    904
    @benzsuankularb have you reported a bug with your project attached so that they can find out what's wrong and fix it?
     
  30. benzsuankularb

    benzsuankularb

    Joined:
    Apr 10, 2013
    Posts:
    132
    @Claytonious
    I found out the issue cause from my own dll.
    I've modified the .dll and .pdb and look like some part of pdb didn't matched with dll.
    So the stack throw us something like Mono.Cecil.Cil.CodeReader.ReadDebugInfo.
    I tried to delete .pdb then build success

    That's just a work around because I can't debug my dll on iOS.
     
    sinloss likes this.
  31. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    904
    Yes, deleting pbd and mdb files in one of our projects also fixed this issue.
     
  32. NicoL3AS

    NicoL3AS

    Joined:
    Oct 7, 2015
    Posts:
    18
    Hello guys! I am thinking to update to the latest version of Unity. Can somebody confirm this bug is gone in 2018.1.1? Thx :)
     
  33. Moori_Sioux

    Moori_Sioux

    Joined:
    Mar 21, 2016
    Posts:
    3
    Hello,

    Still happens in 2018.1.3 when I turn on Unity IAP (along with other plugins)
    I'll downgrade to 2017 LTS to see how it goes.
     
  34. NicoL3AS

    NicoL3AS

    Joined:
    Oct 7, 2015
    Posts:
    18
    Thanks @Moori_Sioux, yes please let me know.
     
  35. Moori_Sioux

    Moori_Sioux

    Joined:
    Mar 21, 2016
    Posts:
    3
    Didn't work.
    Tried 2017.3.0 with no effect.
     
  36. NicoL3AS

    NicoL3AS

    Joined:
    Oct 7, 2015
    Posts:
    18
    Did you try to delete pbd and mdb files as suggested by @benzsuankularb and @Claytonious?