Skip to content

Conversation

vvaldik
Copy link

@vvaldik vvaldik commented Jul 12, 2019

TARGET_OS_IPHONE is defined as a zero in the "TargetConditionals.h" on the MacOS.
So current test for iOS #if defined(TARGET_OS_IPHONE) is always true on MacOS...
It has to be checked as #if (TARGET_OS_IPHONE==1) instead.

TARGET_OS_IPHONE is defined as a zero on the MacOS, so for iOS it has to be checked as #if (TARGET_OS_IPHONE==1), but not #if defined(TARGET_OS_IPHONE)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants