3 ms·
Probably because "how do I detect simulator" is one of the most asked questions about swift. So Apple uses the leverage they have over the language. I hope tho
by yoz-y 9y ago
Probably because "how do I detect simulator" is one of the most asked questions about swift. So Apple uses the leverage they have over the language.
I hope though that the way the targetEnvironment condition is implemented is that the 'simulator' exists only in the iOS library.