![swift – iOS the best way to get CPU structure given NXGetLocalArchInfo has been deprecated? swift – iOS the best way to get CPU structure given NXGetLocalArchInfo has been deprecated?](https://geeks-news.com/wp-content/uploads/https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded)
[ad_1]
I’m engaged on a “system information” app and it exhibits the CPU structure. I’ve been utilizing this code which works wonderful.
func getArchitecture() -> String? {
guard
let information = NXGetLocalArchInfo(),
let string = information.pointee.description
else { return nil }
return String(utf8String: string)
}
The NXGetLocalArchInfo
operate has been deprecated in iOS 16, and I do not know what to make use of as an alternative.
[ad_2]