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