0

I want to make sure that certain functions designed to be caught by symbolic breakpoints, such as UIViewAlertForUnsatisfiableConstraints, are not triggered during UI testing. However, I don't want to have the phone hooked up to the debugger and catching breakpoints. Instead, I want to crash the app somehow when these functions are run. How can I do this? Would dyld interposing help?

meisel
  • 2,151
  • 2
  • 21
  • 38

1 Answers1

-1

Put a @try @catch around your call to UIApplicationMain. In the @catch block call:

kill( getpid(), SIGTRAP); //or SIGKILL
Mustang
  • 363
  • 2
  • 9