You can't run iPhone apps on a Mac computer without an emulator, though that will change with a new set of Macs, coming out by the end of 2020.
You can scan a barcode with your iPhone by using a third-party app. Currently, there are no built-in apps that can read ...