replace TARGET_OSX to TARGET_OS_IPHONE