NSImage issue when try to deploy a MacOS13 version on OS14 and Xcode15

I cannot set "minimum deployment version" of the software into MacOS 13.0 on MacOS 14.0 beta 2, with Xcode 15 beta. This will give me an error in GeneratedAssetSymbols.swift file. The error is: 'let' property 'isTemplate' may not be initialized directly; use "self.init(...)" or "self = ..." instead. However, development on MacOS 14 is totally fine.

Is this issue caused by my implementation or something changes in the SDK? Thanks!

Update: This is due to the new feature of "Swift Language" - "C++ and Objective-C Interoperability" when choosing C++/Objective-C++. Even the default project will have this error. Does someone came out a solution?

I confirm, I have the very same issue :( Xcode 15 beta 2, default macOS App with Storyboard UI + interoperability set to C++

Update: fixed in Xcode 15 beta 3

NSImage issue when try to deploy a MacOS13 version on OS14 and Xcode15
 
 
Q