It depends in how you virtualize the Mac.
The problem isn't directly a licencing question, it is a difference in the file system.
MacOS has some additional file attributes that simply don't exist in a windows-based file system but that are required for correct operation of programs.
You'll need a MacOS to set this correctly, but as far as I know it should be possible to do this even with a virtualised MacOS.
Unfortunately most versions of MacOS are protected and forbidden for virtualisation, and the versions that allow virtualisation are more expensive.
Best option would probably be to purchase a used Mac for this...