You can scan a barcode with your iPhone by using a third-party app. Currently, there are no built-in apps that can read barcodes.
A breakdown of how to get into all your gaming accounts on the new Xbox Ally X, including Steam, the Epic Games Store, and Ubisoft Connect.