[英]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我在 Swift Package 管理器中遇到错误,某些类仅在 macOS 10.15 或更高版本中可用
However I set the deployment target to 12.3.但是我将部署目标设置为 12.3。 Is there any other place I need to change the deployment target for this to work?
我还需要在其他地方更改部署目标才能使其正常工作吗?
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 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)],
...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.