'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?

Replies

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:

  • It looks like I have different settings, I've added the screenshots in a separate answer. My app was iOS only, then I added macCatalyst, and here's the settings that I have now. The macCatalyst app is released as a separate one, if it matters.

Add a Comment

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