For Simulators, check the environment variable `SIMULATOR_MODEL_IDENTIFIER` which will return the same value a device would return (eg "iPhone7,1").