Apple has already started moving iPhone production to India/Vietnam with the goal of having 40-45% of their iPhones being produced there. It's far from a trivial move.
I'd suggest that had less to do with potential CCP interference than it did with hedging against the massive tariffs on threatened in 2019 during the height of the US<->China "trade war"
Which means it took them over a decade to start moving their assembly lines out of China. The GP comment still stands, Apple clearly had no urgent interest in ending their relationship with China. A cynic might even suggest that they're only doing it now that the geopolitical tensions are favoring the US...