Project does not compile in Xamarin


We have a Xamarin app with SS being used in API and as service client. After updating to the latest Xamarin we started getting compilation errors with SS.Text library. It seems to me similar to Xamarin iOS 9.1.0 problem.

error: can not encode offset ‘0x100004C’ in resulting scattered relocation.
2> .long mono_aot_ServiceStack_Text_got - . + 217692

Microsoft Visual Studio Professional 2017
Version 15.9.14
Xamarin (d15-9@23fa80172)
Xamarin.Android SDK (HEAD/ba9da7a76)
Xamarin.iOS and Xamarin.Mac SDK (9c8d8e0)

Please help.


You should be using ServiceStack.Text.dll, not trying to compile it, if the compilation is against ServiceStack.Text library than it sounds like it’s a regression in Xamarin in their latest update, and you should be filing a bug with them.

Hello Demis,

Some more info after your comment. Another VS version came out and we updated but the same issue remains. If we remove the SS packages from solution it compiles. But as soon as we refer the SS client then problem resurfaces. Could this be connected somehow to

If we compile this on Mac VS everything is fine.


Microsoft Visual Studio Enterprise 2019
Version 16.2.1
Xamarin (d16-2@2983aebeb)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.iOS and Xamarin.Mac SDK (c669116)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

A new VS Version isn’t going to matter if it’s an Xamarin regression. Adding a .NET Standard package should not be causing compilation errors and if it worked with a previous version of Xamarin it’s a regression, have you filed a bug report with them?