Long before the coronavirus struck, Apple Inc.’s operations team began raising concerns about the technology giant’s dependency on China.

Some operations executives suggested as early as 2015 that the company relocate assembly of at least one product to Vietnam. That would allow Apple to begin the multiyear process of training workers and creating a new cluster of component providers outside the world’s most populous nation, people familiar with the discussions said.

...