How to specify Mac OSX deployment target for dependencies in Mac Catalyst when previewing

Viewed 678

When trying to preview a Mac Catalyst app I run into an isue:

The package product 'NIOTransportServices' requires minimum platform version 10.15 for the macOS platform, but this target supports 10.10 (in target 'NIOTSHTTPServer' from project 'swift-nio-transport-services')

When building a preview the build system seems to not respect the deployment target set.

Obviously, as this is an IOS project with Mac as extra target the MACOSX_DEPLOYMENT_TARGET variable is set to 10.15

Building and running the app works fine.

Is there a way of manually specifying the deployment target for preview builds?

1 Answers

As it turned out this was a bug in Xcode and is fixed since 12.0.1 and later.

Related