繁体   English   中英

如何从 Xcode 中的 MacOS 应用程序中删除部署目标错误?

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

我在 Swift Package 管理器中遇到错误,某些类仅在 macOS 10.15 或更高版本中可用

错误

但是我将部署目标设置为 12.3。 我还需要在其他地方更改部署目标才能使其正常工作吗?

部署目标

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

就像是

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM