There are a lot of solutions to find out on which device out app is running.
iOS: How to determine the current iPhone/device model in Swift?
But running in t
As of Xcode 9.4.1, NSProcessInfo().environment now includes a key for "SIMULATOR_DEVICE_NAME". Values look like "iPhone 8".