from a genuine Apple installer.
hdiutil create -o ~/Desktop/macOS_temp -size 14g -volname macOS -layout SPUD -fs HFS+J mac os iso
If you need a ready-to-run script that automates the ISO creation process, let me know and I can provide that as well. from a genuine Apple installer
Unlike Windows or Linux, macOS is not officially distributed as an ISO file by Apple. Instead, Apple provides macOS installers as .app bundles downloaded from the App Store. However, creating a bootable macOS ISO is useful for: mac os iso