First you need to convert your ISO file to the proper file type for your Mac. I am using a Windows 2016 ISO image for my example.
$ hdiutil convert -format UDRW -o winserv2016.img winsrv2016.iso Reading SSS_X64FREV_EN-US_DV9 (Apple_UDF : 0)… ............................................................................... Elapsed Time: 2m 0.583s Speed: 45.0Mbytes/sec Savings: 0.0% created: /Volumes/HD2/vmware/winserv2016.img.dmg
Insert your usb stick
Run the following command.
$ diskutil list /dev/disk0 (internal): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme 251.0 GB disk0 1: EFI EFI 314.6 MB disk0s1 2: Apple_APFS Container disk1 250.7 GB disk0s2 /dev/disk1 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +250.7 GB disk1 Physical Store disk0s2 1: APFS Volume Macintosh HD 96.0 GB disk1s1 2: APFS Volume Preboot 44.4 MB disk1s2 3: APFS Volume Recovery 512.4 MB disk1s3 4: APFS Volume VM 1.1 GB disk1s4 /dev/disk2 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *480.1 GB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_APFS Container disk3 479.8 GB disk2s2 /dev/disk3 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +479.8 GB disk3 Physical Store disk2s2 1: APFS Volume HD2 297.6 GB disk3s1 /dev/disk4 (external, physical): #: TYPE NAME SIZE IDENTIFIER 0: FDisk_partition_scheme *30.8 GB disk4 1: DOS_FAT_32 SANDISK 30.8 GB disk4s1
With the following command unmount your USB drive you located previously. disk4 is my USB stick.
$ diskutil unmountDisk /dev/disk4 Unmount of all volumes on disk4 was successful
Run the following command to create a Mac image or .dmg file of the ISO file.
$ sudo dd if=winserv2016.img.dmg of=/dev/disk4 bs=1m 5430+1 records in 5430+1 records out 5694334976 bytes transferred in 5044.856066 secs (1128741 bytes/sec)
And now you will have a bootable USB stick.