Apple will open iOS in Brazil to alternative app stores and external payment systems following a landmark antitrust settlement with regulators.