Home IOS Development 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?

0
swift – iOS the best way to get CPU structure given NXGetLocalArchInfo has been deprecated?

[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]

LEAVE A REPLY

Please enter your comment!
Please enter your name here