IHS estimates the labor cost of an iPhone 7 is
$5. This includes assembly and testing.
China owns the supply chain and has a lot of R&D expertise. For example, AirPods wouldn't be possible without Luxshare-ICT. That company in China designs and manufactures small acoustic components. There's no other company like that in the world.
So much of assembly in China is already automated. Tim Cook dispelled the myth a couple years ago:
"There's a confusion about China. The popular conception is that companies come to China because of low labor cost. I'm not sure what part of China they go to but the truth is China stopped being the low labor cost country many years ago. And that is not the reason to come to China from a supply point of view. The reason is because of the skill, and the quantity of skill in one location and the type of skill it is."