add macro for ios platform