Search code examples
iosxamarinvisual-studio-2015realm

Xamarin.Forms with Realm - issue resolving files when bulding iOs


I've created a Xamarin.Forms solution (with PCL) and included realm nuget both on all my pcl's and my platform specific projects. When I compile the iOS project from within Visual Studio 2015 (from a PC connected to my mac)

I get following compile error:

:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(700,3): error : 
Failed to resolve assembly: 'Realm.Sync, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null'' 

But from my mac running in Xamarin Studio, it compiles without any problem. Does anyone know what the problem could be?


Solution

  • The solution suggested by Andy Dent actually solved the problem - we had later crash, which lead me to think it didn't, but that was on our side.

    Please try building with the 1.0.4 NuGet - see the breaking change in github.com/realm/realm-dotnet/blob/master/CHANGELOG.md that was added in 1.1.0