Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/109.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 我怎样才能买到iPhone‘;s设备监督模型,如A1532,通过代码?;_Ios_Iphone_Macos_Itunes_Jailbreak - Fatal编程技术网

Ios 我怎样才能买到iPhone‘;s设备监督模型,如A1532,通过代码?;

Ios 我怎样才能买到iPhone‘;s设备监督模型,如A1532,通过代码?;,ios,iphone,macos,itunes,jailbreak,Ios,Iphone,Macos,Itunes,Jailbreak,最近我需要制作一个Mac软件来获取iPhone设备信息,但我无法通过代码获取设备监控模型。 我用来获取我需要的信息。有一个示例代码: - (NSString*)serialNumber { return [self deviceValueForKey:@"SerialNumber"]; } // Returns an informational value from the device's root domain. // @param key can apparently be any

最近我需要制作一个Mac软件来获取iPhone设备信息,但我无法通过代码获取设备监控模型。 我用来获取我需要的信息。有一个示例代码:

- (NSString*)serialNumber {
    return [self deviceValueForKey:@"SerialNumber"];
}
// Returns an informational value from the device's root domain.
// @param key can apparently be any value like DeviceName...
不幸的是,我找不到获取设备监控模型值的密钥。我可以通过代码从无越狱iPhone获取设备监控模式吗?

尝试以下操作:

#include <sys/sysctl.h>
#include <sys/utsname.h>

+ (NSString *)deviceName {
    struct utsname systemInfo;
    uname(&systemInfo);
    return [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
}
#包括
#包括
+(NSString*)设备名称{
结构utsname系统信息;
uname(&systemInfo);
返回[NSString stringWithCString:systemInfo.machine编码:NSUTF8StringEncoding];
}

print“x86_64”……我想也许它告诉我们mac的信息可能是我误解了这个问题。我的代码是为iOS应用程序编写的。你们知道Mac应用程序吗?很遗憾,不知道。谢谢你们友好的回答。