realm-dotnet: No properties exception (has linker stripped it?)
Steps & Code to Reproduce
Describe your current debugging efforts.
I know this is known exception but I can’t find solution.
- I have been using realm for long time. It works great.
- I have a plugin that I have been using from nuget Package. It’s "Ble plugin " https://github.com/xabre/xamarin-bluetooth-le/
- I removed ble nuget package because I want to download from github and use it.
- removed package and added project from downloaded source code.
- problem here. “No properties in Baby, has linker stripped it? See https://realm.io/docs/xamarin/latest/#linker-stripped-schema” when I meet Realm.GetInstance().
I tried using config like
var config = new RealmConfiguration("myconf");
config.ObjectClasses = new Type[] { typeof(Baby), typeof(User), typeof(Noti) };
Realm.GetInstance(config).Write(() =>
but it’s not working. same result.
How to solve this problem? Of course I read your guide for this, but I can’t understand and can not solve my problem.
Version of Realm and tooling
Realm version(s): ? 0.77.2
Xamarin/Visual Studio version: ? 6.0
Which operating system version and device: ? iOS / Android both
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (7 by maintainers)
I got the same issue and resolved by adding
<RealmWeaver/>
into FodyWeaver.xmlI really appreciate your help Andy.