You can execute other code at runtime as follows:
if (MonoTouch.ObjCRuntime.Runtime.Arch == Arch.DEVICE) { } else { }
But itβs always useful to investigate (ask here, forums, bug reports) why the behavior is different from the two (just to make sure that it does not hide an error that may bite you later).
poupou
source share