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 like 30 sec. then plug the other end into the iPhone. The infotainment system should do a jiggle or vibration acknowledging the iPhone is connected and show the active carplay green icon on the infotainment system home screen. If noting appears and the iPhone is not showing a charging green icon unplug the cable and reverse it and try again. It could be a only one end current/connection chip cable so in this case which end is plugged into the infotainment could be the issue.