add support for xcode6 and ios8