I have had days worth of problems with my setup (at left) before I finally got it working on 10.14.5. My system hated SMBIOS iMac 19,1 so I changed it to iMac 18,3. That worked for a while, but then I lost (for some unknown reason) the video output from my Sapphire RX-580 Nitro+ following boot. The system was booted and demonstrably alive, but black screen, both on primary and backup SSDs. Also "Shutdown" from the Apple menu always resulted in a Restart. Eventually I gave up and downgraded to High Sierra 10.13.6 (build 17G7024), which works just fine. (I think there may be a compatibility problem between Mojave and this particular graphics card.)