Fixed upgrade to XCode 6