Facing mounting challenges from former President Donald Trump’s tariff war with China, Apple is accelerating its…