resovle errors related to upgrade to Xcode 6 beta 4