mtoc

Convert Mach-O binaries to PE/COFF format for Windows compatibility.

brewmacoslinux
Try with needOr install directly
Source

About

Mach-O to PE/COFF binary converter

Commands

mtoc

Examples

convert a mac binary to windows exe format$ mtoc input.macho output.exe
convert mach-o object file to coff format$ mtoc -i input.o -o output.obj
check if a file can be converted to pe format$ mtoc --check binary.macho
convert executable with verbose output to see details$ mtoc -v input.macho output.exe
batch convert multiple mac binaries to windows format$ for f in *.macho; do mtoc "$f" "${f%.macho}.exe"; done