Hello,
Welcome to Microsoft Q&A!
Could you provide more information ?
What's the version of Xamarin.iOS
you're using ?
What's the simulator/real device did you test on ?
---
Since I test with Xamarin.iOS 14.14.2.5
and test on simulator iPhone 12 , everything works fine .
No matter I place the code in AppDelegate
or ViewController
, the exception was caught as expected .
Could you try replace Exception
with NullReferenceException
?
Or just use testers = test?.property;
instead of placing it into try catch .
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.