updated for Xcode beta 7