According to https://developer.apple.com/videos/play/wwdc2022/110370/, it is mentioned that a dSYM bundle can contain swift modules, but I just cannot reproduce this when trying to build a framework of a dynamic lib. I have already set Debug Information Format to DWARF with dSYM file and build Libraries for Distribution to Yes, but the generated dSYM bundle only contains Contents/Resource/DWARF, but no .swiftmodule or .swiftinterface files.
Where did I get it wrong?
CodePudding user response:
The swift module is incorporated into the dSYM's DWARF containing binaries as a separate section (__swift_ast) rather than being emitted as separate files into the dSYM bundle. You can use otool -v
on the debug info file to verify that this section is present.