I really wish you could talk to some more manufacturing types -- there are many on this site. A lot of things at scale can't be done anywhere except in China.
Now, you can argue that's just about "saving money", because Apple should have built its own automated ports and infrastructure and commodity trading hubs and paid to relocate workers to create a bespoke manufacturing center somewhere else -- but subject to realistic constraints, there was China and no second option to produce iPhones at scale.