You need to: a. set privacy settings so that the Numbers app is permitted to access Contacts
and then... b. open Numbers, create a new empty worksheet, select ALL contacts, copy to clipboard, then paste into Numbers c. now you can export from Numbers to csv.