Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is platform string for iPhone 6 & 6 Plus?

What is the platform string for the iPhone 6 and 6 Plus?

FYI: platform string is important because it helps identifying HW model for programming purpose.

Below is my guess:

  • iPhone 6 (GSM): iPhone7,1
  • iPhone 6 (Global): iPhone7,2
  • iPhone 6 Plus (GSM): iPhone7,3
  • iPhone 6 Plus (Global): iPhone7,4
like image 841
Trung Avatar asked Sep 09 '14 22:09

Trung


2 Answers

Update: My company now has a verizon iPhone 6 and 6 Plus, here's what I've found

  • iPhone7,1 = iPhone 6 Plus
  • iPhone7,2 = iPhone 6

Old answer below for posterity.


So I've done a little digging around in the IPSW files for iOS 8. There are 2 files for the 2 iPhone 6 models; iPhone7,1 and iPhone7,2. The iPhone7,2 IPSW file contains a file named kernelcache.release.n61 and N61 is known to be the internal name for iPhone 6. Similarly, the IPSW file for iPhone7,1 contains a kernelcache.release.n56 file, and N56 is iPhone 6 Plus. Also, the iPhone7,1 firmware contains @3x image assets, and the iPhone7,2 one contains @2x assets.

Therefore:

  • iPhone7,1 = N56 = iPhone 6 Plus
  • iPhone7,2 = N61 = iPhone 6

There don't appear to be any variants of the 2 devices.

like image 135
Mike Akers Avatar answered Sep 30 '22 21:09

Mike Akers


Platform strings for the new iPhone 6, 6s, 6 Plus, and 6s Plus:

  • iPhone7,1: iPhone 6 Plus
  • iPhone7,2: iPhone 6
  • iPhone8,1: iPhone 6s
  • iPhone8,2: iPhone 6s Plus
  • iPhone8,4: iPhone SE

Also, here is the snippet with all platform strings since the beginning of time:

if ([platform isEqualToString:@"iPhone1,1"])    return @"iPhone 2G"; if ([platform isEqualToString:@"iPhone1,2"])    return @"iPhone 3G"; if ([platform isEqualToString:@"iPhone2,1"])    return @"iPhone 3GS"; if ([platform isEqualToString:@"iPhone3,1"])    return @"iPhone 4"; if ([platform isEqualToString:@"iPhone3,2"])    return @"iPhone 4"; if ([platform isEqualToString:@"iPhone3,3"])    return @"iPhone 4"; if ([platform isEqualToString:@"iPhone4,1"])    return @"iPhone 4S"; if ([platform isEqualToString:@"iPhone5,1"])    return @"iPhone 5"; if ([platform isEqualToString:@"iPhone5,2"])    return @"iPhone 5 (GSM+CDMA)"; if ([platform isEqualToString:@"iPhone5,3"])    return @"iPhone 5c (GSM)"; if ([platform isEqualToString:@"iPhone5,4"])    return @"iPhone 5c (GSM+CDMA)"; if ([platform isEqualToString:@"iPhone6,1"])    return @"iPhone 5s (GSM)"; if ([platform isEqualToString:@"iPhone6,2"])    return @"iPhone 5s (GSM+CDMA)"; if ([platform isEqualToString:@"iPhone7,1"])    return @"iPhone 6 Plus"; if ([platform isEqualToString:@"iPhone7,2"])    return @"iPhone 6"; if ([platform isEqualToString:@"iPhone8,1"])    return @"iPhone 6s"; if ([platform isEqualToString:@"iPhone8,2"])    return @"iPhone 6s Plus"; if ([platform isEqualToString:@"iPhone8,4"])    return @"iPhone SE";  if ([platform isEqualToString:@"iPod1,1"])      return @"iPod Touch (1 Gen)"; if ([platform isEqualToString:@"iPod2,1"])      return @"iPod Touch (2 Gen)"; if ([platform isEqualToString:@"iPod3,1"])      return @"iPod Touch (3 Gen)"; if ([platform isEqualToString:@"iPod4,1"])      return @"iPod Touch (4 Gen)"; if ([platform isEqualToString:@"iPod5,1"])      return @"iPod Touch (5 Gen)";  if ([platform isEqualToString:@"iPad1,1"])      return @"iPad"; if ([platform isEqualToString:@"iPad1,2"])      return @"iPad 3G"; if ([platform isEqualToString:@"iPad2,1"])      return @"iPad 2 (WiFi)"; if ([platform isEqualToString:@"iPad2,2"])      return @"iPad 2"; if ([platform isEqualToString:@"iPad2,3"])      return @"iPad 2 (CDMA)"; if ([platform isEqualToString:@"iPad2,4"])      return @"iPad 2"; if ([platform isEqualToString:@"iPad2,5"])      return @"iPad Mini (WiFi)"; if ([platform isEqualToString:@"iPad2,6"])      return @"iPad Mini"; if ([platform isEqualToString:@"iPad2,7"])      return @"iPad Mini (GSM+CDMA)"; if ([platform isEqualToString:@"iPad3,1"])      return @"iPad 3 (WiFi)"; if ([platform isEqualToString:@"iPad3,2"])      return @"iPad 3 (GSM+CDMA)"; if ([platform isEqualToString:@"iPad3,3"])      return @"iPad 3"; if ([platform isEqualToString:@"iPad3,4"])      return @"iPad 4 (WiFi)"; if ([platform isEqualToString:@"iPad3,5"])      return @"iPad 4"; if ([platform isEqualToString:@"iPad3,6"])      return @"iPad 4 (GSM+CDMA)"; if ([platform isEqualToString:@"iPad4,1"])      return @"iPad Air (WiFi)"; if ([platform isEqualToString:@"iPad4,2"])      return @"iPad Air (Cellular)"; if ([platform isEqualToString:@"iPad4,4"])      return @"iPad Mini 2 (WiFi)"; if ([platform isEqualToString:@"iPad4,5"])      return @"iPad Mini 2 (Cellular)"; if ([platform isEqualToString:@"iPad4,6"])      return @"iPad Mini 2"; if ([platform isEqualToString:@"iPad4,7"])      return @"iPad Mini 3"; if ([platform isEqualToString:@"iPad4,8"])      return @"iPad Mini 3"; if ([platform isEqualToString:@"iPad4,9"])      return @"iPad Mini 3"; if ([platform isEqualToString:@"iPad5,3"])      return @"iPad Air 2"; if ([platform isEqualToString:@"iPad5,4"])      return @"iPad Air 2";  if ([platform isEqualToString:@"i386"])         return @"Simulator"; if ([platform isEqualToString:@"x86_64"])       return @"Simulator"; 
like image 31
Cosmin Avatar answered Sep 30 '22 19:09

Cosmin