Xcode does not have a built-in function. Perhaps you can write the Xcode plugin for this, but you will encounter the following problems.
- The Xcode plugin API is neither supported nor documented.
- Xcode plugins must be overwritten for new versions of Xcode
- It’s actually difficult to determine if the code is active or not.
. ,
#ifndef SOME_UNUSED_DEFINE
#else
#endif
else . , -DSOME_UNUSED_DEFINE, . ifndef , else .