@Drox i think the previous flash was corrupted - did you per chance flash the STM32F1 and not STM32F4 hex file?
If so (or if the flash was interrupted, i.e. due to a bad USB cable, power supply problem or “unplugging”), you’d need to use an ST-LINK V2 programmer (the original one from ST Micro) and attach the contained 16-pin JTAG cable between programmer and your core, then start STM32CubeProgrammer again, select the Programmer and flash.
It’s not expensive and is very useful for any (later) STM32 based DIY projects - highly recommended:
https://de.farnell.com/stmicroelectronics/st-link-v2/programmierer-icd-f-stm8-stm32/dp/1892523?ICID=I-RP-STM7REC-2
(Also be aware of cheap clones - these often are of bad quality or don’t come with the required 16-pin programming cable).
Once you’ve obtained the Programmer, here’s @Phatline s very nice video how to “unbrick” your core - in this video it’s shown for the LoopA, but it’s identical for any core:
It should not be too problematic once you have access to a programmer - and you can use STM32CubeProgrammer for your Mac.
Best regards,
Peter
PS: Just saw that Farnell is out of ST-Link V2s, but they should be available from other sources.