Why doesn\'t this code work when compiling an ApplicationTests unit test bundle?
#if TARGET_OS_IPHONE #import #import &
I had a similar problem: TARGET_OS_IPHONE isn't defined when building a static library. My solution was to add "-DTARGET_OS_IPHONE" to the "Other C Flags" section of the target build options.
TARGET_OS_IPHONE
-DTARGET_OS_IPHONE
Other C Flags