Mac Catalyst Deployment Targets Not Working Properly?

Hi,

I'm trying to update an app to support the new customisable toolbars in iOS 16/macOS 13. To do this, I have updated the minimum deployment target for my app appropriately for both the project and the target.

When attempting to use any of the new properties of UINavigationItem (such as .style or .customizationIdentifier) the project will not compile for Mac Catalyst. These properties are listed in the documentation as supported by Mac Catalyst 16.0.

An easy was to reproduce this problem:

  • Create a new project in Xcode for iOS with Storyboards/UIKit.
  • In the basic ViewController class that's created for you, edit viewDidLoad() and add

self.navigationItem.style = .browser

  • Build the app. It should build.

  • Add Mac (Mac Catalyst) to the Supported Destinations and select My Mac as the current destination and build it. It will not compile as UINavigationItem has no member named style.

I can find no way to specify that the Mac Catalyst version of the build should be targeting Mac Catalyst 16.0.

I am using Xcode 14.0.1 with macOS Ventura 13.0.

I have upgraded to Xcode 14.1 RC 2 and this problem has gone away. Feel free to close this.

Mac Catalyst Deployment Targets Not Working Properly?
 
 
Q