Now I am specify the xcode version in fastlane file like this:
lane :beta do xcversion(version: "12.3") xcode_select "/Applications/Xcode_1