How to enable Objective-C exceptions in Xcode 4.2?

Maybe Iโ€™m tired or something like that, but I added the @try @catch block to my code and I get the error message โ€œcannot use @try with object-c exceptions disabledโ€, which prevents compilation ...

How to enable it? I searched all around, added a breakpoint exception and no results ... How to do this?

+4
source share
1 answer

Check if exceptions are included in the project and / or target assembly settings. Project Navigator -> select project or target -> build options -> Enable Objective-C Exceptions exceptions setting

+24
source

All Articles