hdiutil create -o /tmp/macOS -size 16000m -layout SPUD -fs HFS+J
tool. This involves creating a blank disk image, mounting it, and copying the installation files over. Third-Party Tools: If Terminal feels too complex, tools like (available on
First, create a blank disk image that will hold the installer: