fix compatibility issue in Xcode 6.0 GM.

fix compatibility issue in Xcode 6.0 GM.
Merge pull request #1 from bobshao/master

fix compatibility issue in Xcode 6.0 GM.