Apple has been told it must recall every iPhone 12 sold in the country if it cannot fix the problem.