Apple didn’t build a proprietary OS on top of BSD licensed UNIX. They used the core of NEXTSTEP, which in turn used parts of several different BSD distros (though not its kernel or driver system).