An (ending in .iso ) is a disk image of an optical disc. It contains an exact copy of the data found on a physical CD, DVD, or Blu-ray.
mv ~/Desktop/macOS_install.iso.cdr ~/Desktop/macOS_install.iso mac os iso
Once you have your freshly created ISO, what do you do with it? An (ending in
Since the macOS installer app is not an ISO, you must use the Terminal to create a disk image and convert it. Below is the general logic for the process (commands may vary slightly by OS version): mac os iso