Newtonsoft.Json deserialize object in Xamarin iOS project

后端 未结 6 1255
感动是毒
感动是毒 2020-11-30 15:03

I\'m getting some very weird behaviour in my Xamarin.Forms Project.

I\'m retrieving some serialized data from a REST API. I\'m then trying to use Json.NET to deseri

6条回答
  •  天命终不由人
    2020-11-30 15:31

    Setting iOS Build Linker Behavior to "Link Framework SDKs only" fixed this for me.

    As T.J.Purtell.1752 describes in the referenced xamarin thread, the Xamarin Linker will strip out unused types, methods, and fields.

    Link Framework SDKs only prevents that happening for my application classes, which is fine in my conmtext.

提交回复
热议问题