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:
- Cleaning build folders (
Cmd+Shift+K
) - Deleting DerivedData
- Restarting Xcode and my Mac
- Checking Activity Monitor for high CPU/memory usage (Xcode itself is the culprit, but not consistently at 100%)
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.
Comments
I'm experiencing something similar! My simulator launches are taking ages, and sometimes it hangs entirely. I'm on an M1 Pro, so it might not be hardware specific. Did you try disabling any beta features in Xcode's preferences?
Check your project's Build Settings. Sometimes changes in compiler flags or indexing options in beta releases can cause this. Try comparing the build settings between your current beta and the previous stable version.
@ios_dev_pro Good point. I haven't done a deep dive into the build settings diff yet. I'll try that next. @swift_guru_99 I haven't intentionally disabled any beta features, but I'll look through the preferences to see if anything relevant is enabled by default.
Add a Comment