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

Xamarin.Forms iOS app crashes on startup on device when nuget package (v4.3.0) added

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      Goals

      Trying to launch my iOS app that uses Realm. It launches fine using the iOS simulator and on Android devices, but on an iOS device it crashes immediately.

      Expected Results

      App launches without error.

      Actual Results

      App crashes immediately. The following is output in Visual Studio:

      Launched application 'com.jackvine.ComicWrap' on 'Jack???s iPad' with pid 901
      Xamarin.Hosting: Process '901' exited.
      Application 'com.jackvine.ComicWrap' terminated.
      dyld: Library not loaded: @rpath/realm-wrappers.framework/realm-wrappers
        Referenced from: /private/var/containers/Bundle/Application/0D9BDF2D-966D-49D5-9540-7885916AEE27/ComicWrap.iOS.app/ComicWrap.iOS
        Reason: no suitable image found.  Did find:
      	/private/var/containers/Bundle/Application/0D9BDF2D-966D-49D5-9540-7885916AEE27/ComicWrap.iOS.app/Frameworks/realm-wrappers.framework/realm-wrappers: code signature invalid for '/private/var/containers/Bundle/Application/0D9BDF2D-966D-49D5-9540-7885916AEE27/ComicWrap.iOS.app/Frameworks/realm-wrappers.framework/realm-wrappers'
      	/private/var/containers/Bundle/Application/0D9BDF2D-966D-49D5-9540-7885916AEE27/ComicWrap.iOS.app/Frameworks/realm-wrappers.framework/realm-wrappers: stat() failed with errno=1
      

      Steps to Reproduce

      1. Create new Xamarin.Forms app with Xamarin.Essentials v1.5.0 & Xamarin.Forms v4.5.0.356
      2. Install latest realm packages for all projects (v4.3.0)
      3. Build and run on iOS device (must be on a real device, crash does not happen on simulator)
      4. Observe app crashing immediately

      Code Sample

      This happens with a blank project, but for reference my project repo is here.

      Version of Realm and Tooling

      • Client SDK Version: v4.3.0
      • Client OS & Version: iOS 13.3.1
      • Xamarin.Forms Version: v4.5.0.356
      • Xamarin.Essentials Version: v1.5.0

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: