Alexander B
Alexander B

Reputation: 407

Declare Metal support requirement for MacOS application

I'm preparing my app for the Mac App Store. The app depends on Metal and I do not want it to be installed on devices which do not have GPU capable enough. How do I specify this in Info.plist? I've found that on iOS this is possible with UIRequiredDeviceCapabilities key, but this is not supported on macOS. Is there any way to declare Metal dependency? I doubt Metal requirement will be automatically deduced when I upload to the store.

Upvotes: 1

Views: 246

Answers (1)

warrenm
warrenm

Reputation: 31782

This is currently not possible.

There is no macOS equivalent to iOS's device capabilities key. This is why games and other graphically-intensive apps often list additional system requirements in their descriptions.

One imperfect option is to set your deployment target to macOS 10.14 Mojave or newer, since Metal is supported on all Macs supported by Mojave (2012 and later).

When it comes to determining whether the system supports features not present in all versions of Metal, you should use the supportsFeatureSet(_:) method and related API to determine whether to use such features on a case-by-case basis.

Upvotes: 3

Related Questions