Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-591

[Bug]: NullReferenceException on OnPreprocessBuild for iOS

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • Q4-22FY
    • Affects Version/s: None
    • Component/s: None

      What happened?

      Export From Unity to XCode in order to build iOS

      Repro steps

      Import plugin -> Export to iOS

      Version

      10.6.0

      What SDK flavour are you using?

      MongoDB Realm (i.e. Sync, auth, functions)

      What type of application is this?

      Unity

      Client OS and version

      macOS

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      NullReferenceException: Object reference not set to an instance of an object
      RealmWeaver.UnityWeaver.UpdateiOSFrameworks (System.Boolean enableForDevice, System.Boolean enableForSimulator) (at <c7abea30eb38497497cc5dcbe1a89412>:0)
      RealmWeaver.UnityWeaver.OnPostprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at <c7abea30eb38497497cc5dcbe1a89412>:0)
      UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass17_0.<OnBuildPostProcess>b__1 (UnityEditor.Build.IPostprocessBuildWithReport bpp) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:448)
      UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:406)
      
      NullReferenceException: Object reference not set to an instance of an object
      RealmWeaver.UnityWeaver.UpdateiOSFrameworks (System.Boolean enableForDevice, System.Boolean enableForSimulator) (at <c7abea30eb38497497cc5dcbe1a89412>:0)
      RealmWeaver.UnityWeaver.OnPreprocessBuild (UnityEditor.Build.Reporting.BuildReport report) (at <c7abea30eb38497497cc5dcbe1a89412>:0)
      UnityEditor.Build.BuildPipelineInterfaces+<>c__DisplayClass15_0.<OnBuildPreProcess>b__1 (UnityEditor.Build.IPreprocessBuildWithReport bpp) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:426)
      UnityEditor.Build.BuildPipelineInterfaces.InvokeCallbackInterfacesPair[T1,T2] (System.Collections.Generic.List`1[T] oneInterfaces, System.Action`1[T] invocationOne, System.Collections.Generic.List`1[T] twoInterfaces, System.Action`1[T] invocationTwo, System.Boolean exitOnFailure) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildPipelineInterfaces.cs:406)
      

      Relevant log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      NullReferenceException: Object reference not set to an instance of an object
      RealmWeaver.UnityWeaver.UpdateiOSFrameworks (System.Boolean enableForDevice, System.Boolean enableForSimulator) (at <c7abea30eb38497497cc5dcbe1a89412>:0)
      

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: