最近我需要制作一个Mac软件来获取iPhone设备信息,但是我无法通过代码获取设备监控模型。我使用mobileDeviceManager来获取信息,我need.There是一个示例代码:
- (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...不幸的是,我找不到获得设备监督model.Can的值的钥匙我通过代码从一个无越狱iPhone获得了设备监督模式?
发布于 2017-08-30 22:16:17
试试这个:
#include <sys/sysctl.h>
#include <sys/utsname.h>
+ (NSString *)deviceName {
struct utsname systemInfo;
uname(&systemInfo);
return [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
}https://stackoverflow.com/questions/45960451
复制相似问题