'facebook-ios-sdk modules successfully installed but not able to import

I followed the steps as suggested in the official guide to install the packages using the Swift Package Manager and I manually selected the most recent release (currently v12.3.1).

Even though autocomplete shows the modules, and the package has been added successfully to the Package Dependencies, when I try to import a module (e.g. import FBSDKLoginKit) I get the usual No Such Module 'FBSDKLoginKit'.

FYI I am currently using Xcode 13.2.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source