SystemStats::getDeviceDescription for iOS

Hi, when running in the sim this used to return “x86_64” so it was easy for us to check whether we were running in the sim or not.

Now it returns a real name so it’s not possible to perform this check via this call anymore. Is there any other way to do this?

thx

You can use the macro TARGET_OS_SIMULATOR to check at compile-time whether you’re building for the simulator.

2 Likes

thx - and for the speedy response :slight_smile: