Did Apple ever officially license its operating system to run on other companies' hardware?
Yes. In 1995 Apple licensed the Mac operating system to other hardware makers building PowerPC Mac clones, hoping to win over Windows users while Apple kept the premium market. I was at Apple then and sat in on some of the strategy meetings. It backfired: Apple customers bought the cheaper clones, some of the clones were poorly made, and the license fees didn't make up for lost hardware sales. Steve Jobs ended the program soon after he returned in 1997.