Xcode 15 Beta 6: App Runs With High CPU Usage

Hi all,

I am creating a Mac application leveraging SwiftUI for the views and SwiftData for the persistent storage. Now, I have seen others have issues with high CPU usage in Xcode 15 Beta 5, and I seem to be encountering the same issue in Beta 6. Contrary to many though, I did not observe high CPU use in Beta 5.

I have already done my best to resolve the issue, most notably refining my Models' properties to not use default values, etc, but I am still seeing CPU usage at 100%. Any idea on where I can look to further optimise my application?

Massive thanks in advance.

In my case: iOS 17 Simulator & SwiftUI Preview Mode cause this problem. Just use iOS 16 Simulator.

My env is Xcode 14.3.1 & Xcode 15 beta 5. When I open SwiftUI-based project and preview in Xcode 14.3.1 & iOS 16.4, there is no significant CPU usage. However, when I switch to iOS 17, the high CPU usage issue occurs.

Xcode 15 Beta 6: App Runs With High CPU Usage
 
 
Q