Xcode6 comparibility issue