I've got this exact same problem timoisalive. The faster AOT compiler seems to break the sampler.
I have build ipa for my client mobile project code using using -useLegacyAOT yes , application works fine.
When using -useLegacyAOT no application crash runtime.
when I debug the code i got the root cause that the application crash when the following code execute
Let me know the workaround