I am not a fan of Apple or Oracle, but you are not contractually prevented from competing with them if you use Macs or Oracle Cloud to build software.
I wouldn't suggest building on Oracle's property as you drink its milkshake, but the ToS and EULAs don't restrict competition.