ifdef out ios related code