fix xcode6 ios8 beta2.