Also, if you're running a CI/CD pipeline/workflow (such as Bitrise), make sure you've updated the Xcode version in the tool's Stack as well.
In my case, my local version was correct but the Xcode version in my pipeline referenced 10.0 rather than 10.1