On iOS we get PlatformNotSupportedException because of the use of DynamicMethod It would be nice if there was a dynamic option to disable codegen