I’m experiencing frequent crashes in Xcode whenever I try to set an image for a UIButton, UIImageView, or any view's background. The crash happens specifically when typing the image name in the properties panel, causing Xcode to freeze and close.
As a workaround, I’ve tried manually looking up image names in the SF Symbols app and pasting them directly into the image property. However, this issue still occurs randomly, even when doing that.
Troubleshooting Steps I've Tried I have already attempted the following solutions:
Clearing Xcode Cache using the following terminal commands:
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode
rm -rf ~/Library/Application\ Support/Xcode
Upgrading Xcode from 16.1 to 16.2, but the issue persists. The crash only happens when searching for images in the properties panel, but not when using hardcoded image names in code.
Why is this happening? Is this a known bug in Xcode 16.2? Is there any other workaround or fix for this?
Here is my Crash Log:
Any help would be greatly appreciated!
I’m experiencing frequent crashes in Xcode whenever I try to set an image for a UIButton, UIImageView, or any view's background. The crash happens specifically when typing the image name in the properties panel, causing Xcode to freeze and close.
As a workaround, I’ve tried manually looking up image names in the SF Symbols app and pasting them directly into the image property. However, this issue still occurs randomly, even when doing that.
Troubleshooting Steps I've Tried I have already attempted the following solutions:
Clearing Xcode Cache using the following terminal commands:
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode
rm -rf ~/Library/Application\ Support/Xcode
Upgrading Xcode from 16.1 to 16.2, but the issue persists. The crash only happens when searching for images in the properties panel, but not when using hardcoded image names in code.
Why is this happening? Is this a known bug in Xcode 16.2? Is there any other workaround or fix for this?
Here is my Crash Log: https://mega.nz/file/QzJ0BCCZ#26fkyxpt63KNHxNJBmpw6hxt9rk6AXUExWte0BJLbmU
Any help would be greatly appreciated!
Share Improve this question asked Mar 19 at 5:56 hakim apghakim apg 275 bronze badges 01 Answer
Reset to default -1You can try running this on the terminal. I have no more crashes so far after using it.
defaults write com.apple.dt.Xcode DVTDisableAutocomplete -bool YES