Apple needs to tell Foxconn two things:
1) Get the Brazilian facility online and at capacity ASAP;
2) Find another country for additional IOS production.
Note that the latter should not be presented as a threat to the Chinese government, it is simply a risk management move to minimize exposure to problems like this or other catastrophic issues (like an earthquake in China). If located in India, the supply chain would not even be lengthened as much as it is to Brazil.