updated for Xcode beta7