Fody Error while compile with 3.0.0 Realm on Xamarin


#1

When I upgrade packages to Realm 3.0.0 of ReamMobEx in Visual Studio Mac (Xamarin), I have this compile error:

Error: Fody: The weaver assembly ‘RealmWeaver.Fody, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null’ references an out of date version of Mono.Cecil.dll. Expected strong name token of ‘1C-A0-91-87-7D-12-CA-03’ but got ‘50-CE-BF-1C-CE-B9-D0-5E’. The weaver needs to update to at least version 3.0 of FodyHelpers. (RealmMobEx)

Thanks


#2

@luigi.degiacomo Can you add a new FodyWeavers.xml to your project? It looks like this:

<?xml version="1.0" encoding="UTF-8" ?>
<Weavers>
    <RealmWeaver />
</Weavers>

#3

This is actually caused by incopatibility between Realm and Fody 3.x. Please downgrade Fody to a 2.x version to make the error go away. We expect to release a compatible upgrade but hasn’t been super high priority.


#4

Thanks, I downgrade Fody and now it’s ok!


#5

thanks, I downgrade fody and fodyhelpers version 2.50 and worked successful.