Launch Xcode once, quit, then reset your date via System Preferences.
If you search for "Xcode" in the App Store on High Sierra, you will likely see the latest version (currently Xcode 15 or 16). If you try to download it, you will receive an error message stating: "This application requires macOS [Newer Version] or later." download xcode for mac os high sierra 10136 work