Module not imported , when dragging folders from other Xcode projects

When I drag folders from other Xcode projects , in pre Xcode 13 versions the files used to compile just fine. But in Xcode 13 they don't. The folder is also colored blue.

This happens when creating a reference or copying the files.

When trying to use types in the folder autocomplete show the error : "this completion is from a module that has not been imported".

The issue persists , wether I drag from finder or another Xcode projects.

The files in the folder don't have a target membership option , only the folder does. Even though it is checked , the modules are not imported.

Module not imported , when dragging folders from other Xcode projects
 
 
Q