I'm running iOS in a simulator to debug multiple CSS issues in a webpage, and this cost me TWO HOURS today.
This is for the the latest Xcode on the latest MacOS (Sequoia 15.5) as of July 2025.
With the simulator open, run the following command to list your simulator containers:
ls -tr ~/Library/Developer/CoreSimulator/Devices/ | tail -n 1
This will get you a GUID like 2780B427-BB9B-4570-AC1B-7043BADB800C
Open Safari in the simulator at least once. You can leave it open for this operation as well. Run the following:
rm -rf ~/Library/Developer/CoreSimulator/Devices/[GUID FROM ABOVE]/data/Containers/Data/Application//Library/Caches/com.apple.mobilesafari/
Then hit the "home" icon in the toolbar of the simulator twice, to bring up the app switcher, and swipe Safari up to kill it.
Launch Safari again and it will reload everything.
Nearly twenty years of iOS development... And this is what it takes to perform one of the most basic web developer operations.
Topic:
Safari & Web
SubTopic:
General
Tags: