How to get MacOS Version and device model from iOS app running on the Mac with Apple Silicon?

Hello, we're trying to running Unity game built for iPhones and iPads on Mac, just like this.

https://developer.apple.com/documentation/apple-silicon/running-your-ios-apps-in-macos

Getting device model with Unity API works on iPhone and iPad, but we got "iPad8,1"(or iPad8,2/3/4/..., one of the model of iPad Pro 3) for device model, and get "iPadOS 16.6" for Operating system on Mac. They are not Mac device information, how we get Mac device model and Mac OS version if we are running on Mac? (Additionally, not Mac Catalyst.)

Answered by jlilest in 773442022

You likely have to build a mac catalyst or macos app for that. For iOS apps it is emulating an iPad, so you get the emulated device information.

Accepted Answer

You likely have to build a mac catalyst or macos app for that. For iOS apps it is emulating an iPad, so you get the emulated device information.

How to get MacOS Version and device model from iOS app running on the Mac with Apple Silicon?
 
 
Q