The issue is due to the smart chip in the cable. If it works sometimes and not other times its the sequence of plugging in the iPhone. Disconnect the cable from the car. close doors, start engine wait for the infotainment system to finish booting. Plug the USB-C into the dash port, wait a bit...