I learnt about the below piece of code, which is claimed to prevent Method Swizzling to some extent.
#ifndef DEBUG
SEC_IS_BEING_DEBUGGED_RETURN_NIL();
#endif
But while including in my project for testing, I get an error.
Implicit declaration of function 'SEC_IS_BEING_DEBUGGED_RETURN_NIL' is invalid in C99
Can someone help me out on this error, if I need to include any library header for the same.
I didn't intend to answer my own question. From the comment above, I did a search for any such implementation. And Found this In a GitHub Project. Which is a category of
NSObjectPerhaps, it would help anyone in
future.Credits to maker of this