0

In Swift 4, I am getting wrong iOS Simulator identifier for iPhone 5s, iOS 11 using ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"]. It is returning iPhone6 instead of iPhone5.

Reference: Detect Simulator iOS Version

Farhan Arshad
  • 375
  • 3
  • 9

1 Answers1

0

Well, after some research, I fount out that if iPhone6,1, iPhone6,2 is returning, it means iPhone 5s.

Farhan Arshad
  • 375
  • 3
  • 9