Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable Objective-C exceptions on Xcode 4.2?

maybe I'm being daft or something but I've added a @try @catch block to my code and I'm getting a "cannot use @try with object-c exceptions disabled" error that prevents compilation...

How do I turn it on? I've searched all around, added the exception breakpoint thing and no results...How do I do this?

like image 539
RFG Avatar asked Aug 07 '12 23:08

RFG


1 Answers

Check if you have enabled exceptions on the project and/or target build settings. Project Navigator -> select project or target -> build settings -> Enable Objective-C Exceptions exceptions setting

like image 94
vikingosegundo Avatar answered Oct 28 '22 16:10

vikingosegundo