swift: support Xcode6-beta5 or later