devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.
MIT License
4.42k stars 428 forks source link

Add macOS support #296

Closed AvdLee closed 2 years ago

AvdLee commented 2 years ago

This adds the bare minimum to allow using this library on macOS. There are example applications that can make use of this, like developer tools. In my case, I'm using this package within RocketSim to identify simulators correctly.

I realized there was another PR, actually adding macOS device support: https://github.com/devicekit/DeviceKit/pull/217 Though, this PR is quite old and not active.

Therefore, this might be a great PR to merge in to have a start with macOS support, by at least allowing access to APIs for Mac apps.

Fixes #184

AvdLee commented 2 years ago

I'm closing this PR as I realised I can't use this right now on macOS due to the #if os() checks, obviously. Let me know if this PR is still valuable.