Only this solution worked for XCode 16.1:
Go to your project select General and remove AlamofireDynamic from this section by clicking to minus.
Remove from here