Xcode "Build documentation" not working with Swift Macro package in project

I have a workspace with my project and a Swift Macro. When I use the "Build Documentation" command the build fails with this error:

fatal error: module map file '/Users/me/Library/Developer/Xcode/DerivedData/Project-fmdkuqlofexbqdhhitpgjnoqzyrz/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos/Macros.modulemap' not found

Is there a way around this?