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: http://stackoverflow.com/a/3950748/482899
You can find a list of all iOS device identifiers here (including iPhone 5 models and iPad mini): http://theiphonewiki.com/wiki/index.php?title=Models
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.