Different Output of Address formatting on device and simulator

Originator:francois.benaiteau
Number:rdar://29374549 Date Originated:23/11/2016
Status:Open Resolved:
Product:iOS Product Version:10.1.1
Classification: Reproducible:
 
Area:
Contacts

Summary:
CNMutablePostalAddress does not show the state when running on device or but DOES show on simulator.

Changing Region or Locale did not change anything.

Steps to Reproduce:
Run on Simulator and on Device the following snippet:

import Contacts
let address = CNMutablePostalAddress()
address.city = "San Francisco"
address.postalCode = "94108"
address.country = "USA"
address.state = "CA"

let formatter = CNPostalAddressFormatter()
let result =  formatter.stringFromPostalAddress(address)
        
print(result)
   

Expected Results:
San Francisco CA 94108
USA


Actual Results:
94108 San Francisco
USA

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!