I uploaded a zip file it got rejected saying that it has .DS_Store in my zip archive. Turns out that .DS_Store is a harmless hidden file created by  mac. Creating zip files without .DS_Store is not easy and can only be done through the command line. Here is a very simple way of doing this only through command line.

First navigate to the current folder and then zip

cd /Applications/XAMPP/xamppfiles/apps/wordpress/htdocs/wp-content/themes
zip -r <zipfile> <directory> -x "*.DS_Store"