How include dSYM when I build my Framework project?

This question is related to this post (of mine).

It seems default build settings do not include dSYM files needed when uploading embedding app package. But now Xcode issues new warnings about this.

Now the question - how do I tell Xcode to create dSYM files for me, say when I build My.Framework?

I asked AI chatbot which tells me that for release build I need to :

  1. set "Debug Information Format" to DWARF
  2. set "Strip Debug Symbols During Copy" to off

I have item 1 turned on (which I believe is the default). But item 2 is on, maybe that's the reason I do not have dSYM files in final built My.Framework.

Should I turn "Strip Debug Symbols During Copy" off?

Take this setup to start with:

  1. Create a new Xcode project with an app target
  2. Add a framework target to the same project, and when creating the framework, associate it with the app target with the Embed in Application dropdown.
  3. Archive the app.

That puts 2 dSYMs in the Xcode archive, one per target, with this file structure:

/TestApp.xcarchive
├── dSYMs
│   ├── MyFramework.framework.dSYM
│   └── TestApp.app.dSYM
├── Info.plist
└── Products
└── Applications
└── TestApp.app
├── Frameworks
│   └── MyFramework.framework
└── TestApp

How does your setup differ from that basic one?

— Ed Ford,  DTS Engineer

How can this be done without having the framework project within the app project?

In m case I have an Xcode iOS project with type framework. Then I create a .xcframework and include that into another project with type app. In both projects the debug information format is set to Dwarf with dSYM in release build.

Within the app project, within the Frameworks, Libraries & Embedded content section the framework is set to Embed and Sign, and its within the Embed Frameworks section.

Yet when an archive of the app is created there is no dSYM present from the framework.

How include dSYM when I build my Framework project?
 
 
Q