add IOS_VERSION macros into CommonFunctions