fix compatibility issue in Xcode 6.0 GM.

fix compatibility issue in Xcode 6.0 GM.