My MacOS Release : 10.13.6.
Open terminal : “sudo spctl –master-disable”
Check the status : “spctl –status”
After on Gatekeeper :