This check is incorrect

There's no need to switch based on the use of COCOAPODS. The correct type is defined by OS_OBJECT_HAVE_OBJC_SUPPORT period.