Paul Calnan's Blog
Published May 13, 2020

Has Xcode stopped working for you? Builds acting funny? Autocomplete stopped working? You've quit and restarted it, cleaned the build folder, and it's still broken?

Try running this.

#!/usr/bin/env bash

set -euo pipefail

echo "Exiting Xcode"
osascript -e 'quit app "Xcode"'

echo "Deleting DerivedData"
rm -rf ~/Library/Developer/Xcode/DerivedData/*

echo "Deleting llvm module cache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"

echo "Relaunching Xcode"
open -a Xcode
Published May 10, 2020

It has been over five years since I have actively updated my blog. I have done some recent work that I wanted to post about, so I have decided to reboot my blog.

I have removed the old posts that I had up here previously. Most posts were badly outdated. I will repost some of the topics that are still relevant.