什么是iPhone 6的平台字符串& 6加?

时间:2014-09-09 22:44:21

标签: ios iphone iphone-6

iPhone 6和6 Plus的平台字符串是什么?

仅供参考:平台字符串很重要,因为它有助于识别硬件模型以进行编程。

以下是我的猜测:

  • iPhone 6(GSM):iPhone7,1
  • iPhone 6(全球):iPhone7,2
  • iPhone 6 Plus(GSM):iPhone7,3
  • iPhone 6 Plus(全球):iPhone7,4

6 个答案:

答案 0 :(得分:25)

更新:我的公司现在有一个verizon iPhone 6和6 Plus,这是我发现的

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

下面的旧答案为后人。


所以我在the IPSW files for iOS 8进行了一些挖掘。 2个iPhone 6型号有2个文件; iPhone7,1和iPhone7,2。 iPhone7,2 IPSW文件包含一个名为kernelcache.release.n61的文件,已知N61是iPhone 6的内部名称。同样,iPhone7,1的IPSW文件包含kernelcache.release.n56文件,而N56是iPhone 6加。此外,iPhone7,1固件包含@ 3x图像资源,而iPhone7,2固件包含@ 2x资产。

因此:

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

这两种设备似乎没有任何变体。

答案 1 :(得分:9)

新iPhone 6,6s,6 Plus和6s Plus的平台字符串:

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

此外,以下是自开始以来所有平台字符串的代码段:

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";

答案 2 :(得分:7)

如果您查看/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/DeviceTypes内的设备配置文件(使用Xcode 6),您会看到:

iPhone 6 Plus: iPhone7,1

iPhone 6: iPhone7,2

答案 3 :(得分:6)

Apple网站上这些网页的网址(针对" RF Exposure")似乎确认:

iPhone 6 Plus:7,1

iPhone 6:7,2

答案 4 :(得分:2)

http://theiphonewiki.com/wiki/IPhone

iPhone 6 Plus:iPhone7,1

iPhone 6:iPhone7,2

答案 5 :(得分:0)

这似乎与最新型号保持同步。

UIDeviceHardware