Apple spent a decade trying to build a self-driving car.