updated for xcode6 beta6