Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to remove deployment target errors from MacOS app in Xcode?

I’m getting errors in a Swift Package Manager that certain classes are only available in macOS 10.15 or newer

Errors

However I set the deployment target to 12.3. Is there any other place I need to change the deployment target for this to work?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Deployment Target

>Solution :

You have set the deployment target for your Xcode project to 12.3 but to do it for your package you need to add it to your Package.swift file as well using the platforms property

Something like

let package = Package(
    name: "YourPackage",
    platforms: [.macOS(.v12)],
    ...
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading