How to determine if modules are supported in Xcode?
This is an old question, but needed to know how to do this too. Here is a way to do it:
#ifdef __has_feature(modules) @import Foundation;#else #import <Foundation/Foundation.h>#endif
Reference: CLANG LANGUAGE EXTENSIONS