Apple device model (update)

/ / equipment type + (NSString * deviceVersion) {struct utsname systemInfo; uname (& systemInfo); NSString *deviceString = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding]; //Apple TV if ([deviceString isEqualToString:@ "AppleTV2,1"]) return @ "Apple TV 2"; if ([deviceString "AppleTV3,1" isEqualToString:@ [deviceString isEqualToString:@ "AppleTV3,2"]||] @ return) "Apple TV 3" (if; [deviceString isEqualToString:@ "AppleTV5,3"]) return @ "Apple TV 4"; //Apple Watch if ([deviceString isEqualToString:@ Watch1,1]|| [deviceString isEqualToString:@ "Watch1,2"]) return @ "Apple Watch 1"; if ([deviceString isEqualToString:@ Watch2,6 [deviceString]|| IsEqualToString:@ "Watch2,7" return "Apple Watch") @ Series 1 "; if ([deviceString isEqualToString:@ Watch2,3]|| [deviceString isEqualToString:@" Watch2,4 "return" Apple Watch ") @ Series 2"; //iPhone if ([deviceString isEqualToString:@ "iPhone1,1" return "iPhone2G" @ "); if ([deviceString isEqualToString:@" iPhone1,2 "]) return @ if (" iPhone3G "; [deviceString isEqualToString:@" iPhone2,1 "return" iPhone3GS "@"); if ([deviceString isEqualToString:@ iPhone3,1 [deviceString isEqualToString:@]||]|| [deviceString "iPhone3,2" isEqualToString:@ "iPhone3,3" return "iPhone4" @ "); if ([deviceString isEqualToString:@" iPhone4,1 "]) return @" iPhone4S "; if ([deviceString isEqualToString:@ "IPhone5,1"]|| [deviceString isEqualToString:@ "iPhone5,2" return "iPhone5" @ "); if ([deviceString isEqualToString:@ iPhone5,3]|| [deviceString isEqualToString:@" iPhone5,4 "return" iPhone5C "@"); if ([deviceString isEqualToString:@ iPhone6,1]|| [deviceString isEqualToString:@ "iPhone6,2"]) return @ "iPhone5S" if isEqualToString:@ "([deviceString; iPhone7,2" return "iPhone6" @ "); if (" iPhone7,1 [deviceString isEqualToString:@ "return" iPhone6 ") @ Plus"; if ([deviceString isEqualToString:@ "iPhone8,1" return "iPhone6s" @ "); if (" iPhone8,2 [deviceString isEqualToString:@ "return" iPhone6s ") @ Plus"; if [deviceString ("iPhone8,4 isEqualToString:@") @ return] "iPhoneSE" ([de; if ViceString isEqualToString:@ "iPhone9,1"]|| [deviceString isEqualToString:@ "iPhone9,3" return "iPhone7" @ "); if ([deviceString isEqualToString:@ iPhone9,2]|| [deviceString isEqualToString:@" iPhone9,4 "]) return @" iPhone7 Plus "; //iPod if (" iPod1,1 [deviceString isEqualToString:@ "return" iPod ") @ Touch1" if isEqualToString:@ iPod2,1 "([deviceString;" @ "iPod Touch2 return"); if ("[deviceString isEqualToString:@" iPod3,1 "return" iPod ") @ Touch3"; if ([deviceString isEqualToString:@ "iPod4,1"]) return @ "iPod Touch4"; if ([deviceString isEqualToString:@ "iPod5,1"]) return @ "iPod Touch5"; if ([deviceString "iPod7,1 isEqualToString:@" return "iPod") @ Touch6 "; //iPa D if ([deviceString isEqualToString:@ "iPad1,1"]) return @ "iPad 1"; if ([deviceString isEqualToString:@ iPad2,1 [deviceString isEqualToString:@]||]|| [deviceString "iPad2,2" isEqualToString:@ "iPad2,3"]|| [deviceString isEqualToString:@ "iPad2,4"]) return @ "iPad 2"; if ([deviceString "iPad3,1" isEqualToString:@ [deviceString isEqualToString:@ "iPad3,2"]||]|| [deviceString isEqualToString:@ "iPad3,3"]) return @ "iPad 3"; if ([deviceString isEqualToString:@ iPad3,4 [deviceString isEqualToString:@]||]|| [deviceString "iPad3,5" isEqualToString:@ "iPad3,6"]) return @ "iPad 4"; if ([deviceString isEqualToString:@ iPad4,1 [deviceString isEqualToStri]|| Ng:@ "iPad4,2"]|| [deviceString isEqualToString:@ "iPad4,3"]) return @ "iPad Air"; if ([deviceString isEqualToString:@ iPad5,3]|| [deviceString isEqualToString:@ "iPad5,4"]) return @ "iPad Air2"; if ([deviceString isEqualToString:@ iPad6,3]|| [deviceString isEqualToString:@ "iPad6,4" return "iPad") @ Pro (9.7) "; if ([deviceString isEqualToString:@ iPad6,7]|| [deviceString isEqualToString:@" iPad6,8 "return" iPad ") @ Pro (12.9); if (" [deviceString isEqualToString:@ "iPad6,11"]|| [deviceString isEqualToString:@ "iPad6,12"]) return @ "iPad 5"; //iPad Mini if ([deviceString isEqualToString:@ "iPad2,5" [deviceString "iPad2,6" isEqualToString:@]|| []|| DeviceString isEqualToString:@ "iPad2,7" return "iPad") @ mini "; if ([deviceString isEqualToString:@ iPad4,4 [deviceString isEqualToString:@]||]|| [deviceString" iPad4,5 "isEqualToString:@" iPad4,6 "]) return @" iPad mini2 "; if ([deviceString isEqualToString:@ iPad4,7 [deviceString isEqualToString:@]||]|| [deviceString" iPad4,8 "isEqualToString:@" iPad4,9 "return") @ "iPad mini3"; if ([deviceString isEqualToString:@ iPad5,1]|| [deviceString isEqualToString:@ "iPad5,2"]) return @ "iPad mini4"; //Simulator if ([deviceString isEqualToString:@ i386]|| [deviceString isEqualToString:@ "x86_64"]) return @ "Simulator"; return deviceString ";}: @?

Reference document: https://www.theiphonewiki.com/wiki/Models