Add support for both mac and ios