Differentiate between iPhone, iPad and simulator
#if TARGET_IPHONE_SIMULATOR// simulator specific code#elif TARGET_OS_IPHONE// iPhone specific code#elif TARGET_OS_IPAD // iPad specific code#else // Unknown target #endif
Categories: CodeSnippets, iOS, iOS Simulator, Xcode
those macros are not defined when building a static library