兼容xcode5,xcode6