I have 2 big projects (ProjectA & ProjectB) in a workspace. I need to access multiple files from ProjectA into ProjectB. Example: I have a file named Test.h & Test.m & Test.hpp & Test.cpp in project A. I would like the target from the project B could see it. For now, all the classes from the project A are not accessible from the target of the projet B. Each project are separated as if they cannot see each other.
I want to use them as a separate projects instead of library.
But I dont want the same file be in two projects as I use this projects in many other projects, I don't want redundancy as it take lots of space.
How can I achieve this please?

I would personally try and extract those files into a package or a framework and then use that package or framework in both of your files.
But there may be a less beautiful alternative. You can drag your files to
Build PhasesunderCompile Sourcesof your target project. So if you have a fileMyFile.swiftinProject Abut want to also use it inProject Bdo the following:Project Bin your navigatorBuild PhasestabComple SourcesMyFile.swiftfrom navigator toCompile SourcesThis will now show the same file under both of the projects in navigator. It looks as if it was a copy of a file but it is the same file; by changing one you are changing the other.
You can do the same with resources but remember to drag them under Copy
Bundle Resourcesinstead ofCompile Sources.But again think about creating local packages as they are also made in few clicks.
Add to:publicfor what you need to exposeGeneraltabFrameworks, Libraries, and Embedded Contentselect+buttonimport <#PackageName#>in source code to use your package