Consuming code that is dynamically linked to your code means that your integrators must also include this code.
Are you getting this error when generating the XCFramework or when consuming it?
I assume its the second one as that is more likely.
If you don't want your integrators to import additional dependencies such as Alamofire when consuming your XCFramework then I suggested you consume Alamofire statically.
This means that Alamofire code will be included in the same package as your code. This suggestion is only for Swift open source code.
I hope this was of help!