Skip to content

Instantly share code, notes, and snippets.

@ashokds
Forked from jonathan-beebe/clean_old_code_simulators.sh
Last active August 17, 2017 01:02
Show Gist options
  • Save ashokds/56e8fb61275c9149b88e3304ea7474ee to your computer and use it in GitHub Desktop.
Save ashokds/56e8fb61275c9149b88e3304ea7474ee to your computer and use it in GitHub Desktop.
iOS & Xcode Tips
https://www.raywenderlich.com/72021/supercharging-xcode-efficiency
----------
# Close Xcode & the iOS Simulator
# http://stackoverflow.com/a/30940055
# Remove any old runtimes from this directory.
cd /Library/Developer/CoreSimulator/Profiles/Runtimes
# e.g.
sudo rm -rf iOS\ 8.1.simruntime
# http://stackoverflow.com/a/11790983
# Remove the download receipts for simulators you don't need anymore.
# Otherwise Xcode might try to reinstall them for you.
cd ~/Library/Caches/com.apple.dt.Xcode/Downloads
# e.g.
rm com.apple.pkg.iPhoneSimulatorSDK8_1-8.1.1.1354140590.dmg
# Restart Xcode & the iOS Simulator.
# You should notice the old simulators are gone. They will be available to download again in Xcode → Settings → Downloads → Components
-----
Core data debugging
https://forums.developer.apple.com/thread/63315
From iOS10 release notes on CoreData:
log stream —predicate 'subsystem = "com.apple.coredata"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment