northtree northtree - 1 year ago 122
iOS Question

What's the device code (platform string) for iPhone 5 / 5c / 5s / iPod touch 5?

For example, is it "iPhone5,1" or "iPhone5,2" for iPhone 5? And what's the difference?

If anyone has the iPhone 5, please help by running the following code and showing your result. Thank you.

Related Link:

Answer Source

You can find a list of all iOS device identifiers here (including iPhone 5 models and iPad mini):

The identifiers of the latest models are:

iPhone 5: iPhone5,1 and iPhone5,2

iPhone 5C: iPhone5,3 and iPhone5,4

iPhone 5S: iPhone6,1 and iPhone6,2

iPhone 6: iPhone7,2

iPhone 6 Plus: iPhone7,1

iPhone 6S: iPhone8,1

iPhone 6S Plus: iPhone8,2

iPhone SE: iPhone8,4

EDIT: I also made an updated version of the popular iOS Support Matrix including all models up to iPhone 7.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download