dyld: Library not loaded error when adding a package with SPM

Hey all, When adding a package on an iOS project via Swift Package Manager (for instance Alamofire), and trying to run it on a device for debugging I got the crash error dyld: Library not loaded. If I run it on simulator everything works fine. I have a couple of Carthage dependencies and some XCFrameworks but from what I understand that should not affect. Also, the option to embed the Alamofire in the target settings is not available after adding it as dependency of SPM. Thanks for any help.

dyld: Library not loaded error when adding a package with SPM
 
 
Q