hdiutil convert /tmp/Sonoma.dmg -format UDTO -o ~/Desktop/Sonoma.iso
Open Terminal and use the command softwareupdate --fetch-full-installer --full-installer-version 14.x (replacing 'x' with the desired version). download macos sonoma iso
Once the "Install macOS Sonoma.app" is in your folder, follow these steps in Terminal to convert it into a bootable ISO: hdiutil convert /tmp/Sonoma
hdiutil attach /tmp/Sonoma.dmg -noverify -mountpoint /Volumes/install_build download macos sonoma iso