The error "No such module capacitor" occurs when I try to add Capacitor into my iOS project

I am encountering the error “No such module capacitor” while trying to merge a Capacitor JS generated project, which includes pods, with a Swift UI project that also has pods.

Could you please suggest any steps I might have missed or any specific actions needed during the merging process?
Thanks In advance.