简体   繁体   English

macOS 13 无法从 Xcode 14 中的 macOS 部署目标下拉列表中选择

[英]macOS 13 is not selectable from macOS Deployment Target dropdown in Xcode 14

Context语境

I am using Xcode 14 and utilize some SwiftUI features that were added in macOS 13 , like String(localized:, defaultValue:) and NavigationStack / NavigationSplitView .我正在使用Xcode 14并利用一些在macOS 13中添加的SwiftUI功能,例如String(localized:, defaultValue:)NavigationStack / NavigationSplitView However, I do get Compiler Errors when doing so, it seems, that the Compiler does not recognize those new things.但是,这样做时我确实得到了Compiler Errors ,似乎Compiler无法识别这些新事物。

Extra argument 'defaultValue' in call调用中的额外参数“defaultValue”

I checked the Deployment Target in Project > Info and Project > Build Settings , in the latter, the Deployment Target is set to macOS 13 , however, in the former, it is not possible to select macOS 13 from the dropdown menu.我在Project > InfoProject > Build Settings中检查了Deployment Target ,在后者中, Deployment Target设置为macOS 13 ,但是,在前者中,无法从下拉菜单中选择 select macOS 13


Image图片

信息和构建设置


Question问题

How can I update the macOS Deployment Target to macOS 13 , so that I can use the new features?如何将macOS Deployment Target更新为macOS 13 ,以便我可以使用新功能?

Xcode 14.0 does not contain the macOS 13 SDK because macOS 13 has not shipped yet. Xcode 14.0 不包含 macOS 13 SDK,因为 macOS 13 尚未发货。 Because of this you can't use the latest features in macOS 13 or set the deployment target to macOS 13.因此,您无法使用 macOS 13 中的最新功能或将部署目标设置为 macOS 13。

Use the Xcode 14.1 beta to use the new features in macOS 13.使用 Xcode 14.1 beta 来使用 macOS 13 中的新功能。

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

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