Programatically Get macOS Version From Mac Catalyst Version

How can I get the macOS version from the Mac Catalyst version? We're building Info.plist files ourselves but we need a way to programatically (using shell scripts) derive the LSMinimumSystemVersion key needed from the iOS deployment target.

Answered by DTS Engineer in 839390022
How can I get the macOS version from the Mac Catalyst version?

There’s no API to do that.

But it seems like you only need to do this at build time, so it’s reasonable enough to implement your own lookup table for this. Just make sure that your script fails cleanly if the entry isn’t found in the lookup table.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer
How can I get the macOS version from the Mac Catalyst version?

There’s no API to do that.

But it seems like you only need to do this at build time, so it’s reasonable enough to implement your own lookup table for this. Just make sure that your script fails cleanly if the entry isn’t found in the lookup table.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

And... iOS 26+ solves this problem!

Programatically Get macOS Version From Mac Catalyst Version
 
 
Q