The default value of DWARF_DSYM_FOLDER_PATH is $(CONFIGURATION_BUILD_DIR), so changing that will also change where the dSYMs get output to. Normally, during an archive build, CONFIGURATION_BUILD_DIR is set as some ArchiveIntermediates path, and I guess files from there get copied to the .xcarchive at some point.
Changing SYMROOT can also affect DWARF_DSYM_FOLDER_PATH.
If you must override either of those, you may need to manually copy the *.dSYM folders from your CONFIGURATION_BUILD_DIR to the .xcarchive/dSYMS/ folder, or set DWARF_DSYM_FOLDER_PATH to the desired output location.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: