You can run Windows, and B4X in it, inside Virtualbox on your Mac.
This week I was 'forced' to do it in my MacBook Pro (2013), since my Windows laptop died and had to look for an emergency solution until it gets repaired. I took a 90 days free Windows 10 iso, installed everything, and works really good. Even could install some old IDEs for microcontroller development that integrate seamlessly with the USB ports. Worth to give it a try. If you have multiple monitors, a good idea is to extend the Virtualbox to the second one in full screen, so it will be really as working with 2 pcs with the same keyboard