'UIColorPickerViewController' is only available in Mac Catalyst 14.0 or newer

I get this error in Xcode 13.4. I set the deployment target to macOS 12.3 (latest available) but I still get this error.

Which version of macOS should I set as deployment target, to get rid of this error. I dont want to use 'if #available' because I have no alternative code path.

Which macOS version corresponds to Mac Catalyst 14.0?

Answered by myintruder in 745777022

Finally found the issue, one of the projects in my workspace had an older version deployment target.

Normally, it should be MacOS 11, but visibly it does not work in your case.

https://stackoverflow.com/questions/63581114/mac-catalyst-version

You should check the deployment target in 2 places: Project and Targets:

Here's the settings from my project, no macOS deployment target at project level.

Accepted Answer

Finally found the issue, one of the projects in my workspace had an older version deployment target.

'UIColorPickerViewController' is only available in Mac Catalyst 14.0 or newer
 
 
Q