updated for Xcode6 Beta 5