WIP. Make it work with Xcode 6, sort of.