Apple didn't either (for premium smartphones) until, arguably, basing their manufacturing there helped standup a large infrastructure that could easily be turned around to make Huawei, Xiaomi, and other devices.
If Apple had somehow managed to make iPhones in Vietnam instead of Shenzhen, would they really be facing the premium tier competition from Huawei they face in the EU?