Force package dependencies as optimized builds?

When adding a Swift package as a dependency to an Xcode project, how can I force the dependency to build using release (optimized) mode? I still want to debug my main project, but I want certain dependencies to execute optimally.

Thanks!

2 Likes

I also want to be able to do this, and I think it's a common need. The only way I've found is to clone the dependency and add it as a local package, then modify it. Not a great experience.