According to my observations, .dSYM files are created for the iOS dynamic structure built only with the Release configuration.
After the assembly is completed, debug symbol files can be found on these paths for the device and the simulator, respectively:
<Build_Root>/build/Release-iphoneos/<Product_Name>.framework.dSYM <Build_Root>/build/Release-iphonesimulator/<Product_Name>.framework.dSYM
Where
<Build_Root> usually a subdirectory in the Derived Data directory;
<Product_Name> is the name of your structure.
source share