Fixed Xcode 6 issue