Hey everyone,

I've recently updated to the latest Xcode beta (15.1 Beta 2) and I've been experiencing significant performance degradation. The IDE feels sluggish, especially when building large projects or running simulators. My build times have increased by about 30-40%, and switching between files or using the debugger often introduces noticeable lag.

I'm running this on a MacBook Pro (M2 Max, 64GB RAM) with macOS Sonoma 14.1.1. I've tried the usual suspects:

Possible Causes?

I'm wondering if anyone else is seeing similar issues with this specific beta version. Could it be related to new indexing strategies, Metal compiler improvements, or something else entirely?

I've also noticed that the lldb process sometimes spikes in CPU usage even when the app isn't actively debugging. Here's a snippet from my build log that might be relevant:


[100%] Building Swift module 'MyAwesomeApp'
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift-frontend.bridge-action
    cd "/Users/dev_user_123/Projects/MyAwesomeApp"
    export DEVELOPER_DIR="/Applications/Xcode-15.1.0-Beta.2.app/Contents/Developer"
    /Applications/Xcode-15.1.0-Beta.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -driver-file - -target arm64-apple-ios16.0-macabi -Xfrontend -warn-implicit-resilience -Xfrontend -enable-library-evolution -module-name MyAwesomeApp -emit-module -o /Users/dev_user_123/Library/Developer/Xcode/DerivedData/MyAwesomeApp-gjvqlmqjdxlajzbbzuvjxqfzxkfg/Build/Intermediates.noindex/MyAwesomeApp.build/Debug-iphonesimulator/MyAwesomeApp.build/Objects-normal/arm64/MyAwesomeApp.swiftmodule -serialize-diagnostics-path /Users/dev_user_123/Library/Developer/Xcode/DerivedData/MyAwesomeApp-gjvqlmqjdxlajzbbzuvjxqfzxkfg/Build/Intermediates.noindex/MyAwesomeApp.build/Debug-iphonesimulator/MyAwesomeApp.build/Objects-normal/arm64/MyAwesomeApp.swiftdoc -Onone -DDEBUG -DSWIFT_PACKAGE_MANAGER=1 -enable-testing -target-sdk-path /Applications/Xcode-15.1.0-Beta.2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk -Xcc -I/Users/dev_user_123/Library/Developer/Xcode/DerivedData/MyAwesomeApp-gjvqlmqjdxlajzbbzuvjxqfzxkfg/Build/Intermediates.noindex/MyAwesomeApp.build/Debug-iphonesimulator/MyAwesomeApp.build/swift-overrides.h -Xcc -isysroot/Applications/Xcode-15.1.0-Beta.2.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator17.2.sdk -Xcc -Xclang -fobjc-arc -Xcc -fdisable-module-timed-imports -emit-objc-header-path /Users/dev_user_123/Library/Developer/Xcode/DerivedData/MyAwesomeApp-gjvqlmqjdxlajzbbzuvjxqfzxkfg/Build/Intermediates.noindex/MyAwesomeApp.build/Debug-iphonesimulator/MyAwesomeApp.build/Objects-normal/arm64/MyAwesomeApp-Swift.h
            

Has anyone found a workaround or have any suggestions on how to diagnose this further? I'm hesitant to downgrade to the stable release just yet if this is a fixable issue.