Create a universal file from two single-architecture files

lipo

lipo {{path/to/binary.x86_64}} {{path/to/binary.arm64e}} -create -output {{path/to/binary}}

click the source code to copy