Xcode 15.2 project dependencies are not recognized

Loaded both Swift-Collection package 1.1.0 from https://github.com/apple/swift-collections and Facebook 14.1.0 package from https://github.com/facebook/facebook-ios-sdk

I open swift file and type import, the prompt shows the module FBSDKCorekit and as soon as select it, it immediately says module not found Does the same thing for OrderedCollection module.

Did a clean and then also deleted DerivedData directory contents and rebuilt, same error occurs, does not recognize the modules, even though correct packages exist in Xcode I tied with Faebook 16.3.1 and tried.

I deleted the project, created a new project, selected Add Package Dependencies and then deleted the recently sued packages, entered the facebook ios url and tried again. Same error, does not recognize the package contents How can I fix this? Please help.