updated for Xcode6-Beta4