Cannot find 'MenuBarExtra' in scope

Viewed 31

This worked in Xcode 14 Beta 6, but after updating to Xcode 14, I get this error:

A screenshot showing code which tries to use MenuBarExtra in a SwiftUI App, but the error in this question's title is shown instead. Xcode's "about" dialog is showing, proving this is Xcode 14.0. macOS's "about" dialog is showing, proving that this is macOS 13.0

What I've tried

I've ensured that the minimum deployment version is macOS 13, and I've ensured that the target device is "My Mac".

I also tried deleting Derived Data, restarting Xcode, rebooting macOS, etc.

A screenshot showing that the above configuration is indeed set, with the same error showing in the sidebar at the same time this configuration is shown

0 Answers
Related