fixe errors with xcode 6 beta 7