Not only China but let us assume iPhones are made in China only.
China gets a modest share of the profits, because Apple pockets the rest. Reinvesting a fraction in US and stashing most of the profits in banks across the world that use this money as leverage to buy US bonds, among other things.
The physical phone is a "good" that is exported from china. But the majority of the value for an iPhone is in the "services" rendered to that phone, which may be sold/exported from the US but can likely be shifted to other countries in order to avoided taxation/tariffs.