Search code examples
objective-cexceptioncompiler-flags

GCC_ENABLE_CPP_EXCEPTIONS and Objective-C


I have a pure Objective-C project (no C++ anywhere). Can I turn off GCC_ENABLE_CPP_EXCEPTIONS or do Objective-C exceptions rely on this?


Solution

  • If you're not using any C++ code, you can turn it off (it only applies to C++ code). Or you can leave it on -- it won't really matter either way.