inspectdev / inspect-issues

Issue tracker for Inspect
23 stars 2 forks source link

iOS: Simulator versions are not properly recognised #14

Closed NielsLeenheer closed 3 years ago

NielsLeenheer commented 3 years ago

I've got various versions of iOS open in the simulator: iOS 11.4, 12.1, 13.4 and 14.2. They are all recognised as 14.1.

However, my actual iPhone (wirelessly connected?!!) does show the right iOS version.

auchenberg commented 3 years ago

@NielsLeenheer Yup, this is a bit of a hack, as there's no official APIs to detect the Simulators, so lot of magic going on, including a hardcoded iOS version for simulators.

wojtiku commented 3 years ago

You can get iOS versions of the running simulators if you parse the output of xcrun simctl list.

P.S. You probably know this already @auchenberg - wrote it just in case it would be helpful.

auchenberg commented 3 years ago

@wojtiku Yup, just haven't hard time to get to it until today 🎊