replace #define  IOS with TARGET_OS_IPHONE

fixed define for CocoaPods.