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

[Bug]: Unity export to iOS, fail to archive

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

      What happened?

      Hi,

      Exported to Xcode, and it fail to archive.

      Something to do with setting realm-wrappers.framework .

      I checked the PlayerSettings for simulator or device. It gives true in 'device' and false on 'simulator'.

      Debug.Log(PlayerSettings.iOS.sdkVersion == iOSSdkVersion.DeviceSDK);
      Debug.Log(PlayerSettings.iOS.sdkVersion == iOSSdkVersion.SimulatorSDK);

      Not sure why it thinks that it's a simulator.

      Repro steps

      Export To iOS (from Unity) -> In XCode archive.

      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
      Error from XCode (Archive) 
      
      Unity-iPhone.xcodeproj Building for iOS, but the embedded framework 'realm-wrappers.framework' was built for iOS + iOS Simulator.
      

      Relevant log output

      No response

            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: