You cannot run the Xbox network stack directly on macOS. Instead, stream from Microsoft's servers or your console:
Steam, Epic, GOG, Battle.net, EA App all have macOS builds. Check Mac Gamer HQ for compatibility.
Best experience: Xbox Cloud Gaming via browser with a good controller.