Added support for Xcode 6 and iOS 8.