Do I have to rebuild the entire engine after add frameworks or dependencies to project.Build.cs?

Hello. Currenly I’m working on a game project on Mac, I use Xcode to build and deploy C++ code to implement some bottom layer work. The problem is whenever I want to add a new feature to the project, the compiler produce some unexpected error:
clang++:1:1 linker command failed with exit code 1 (use -v to see invocation).
This looks like a linker problem, so I first add related dependencies in the Xcode, but it won’t work. I then add related libraries or frameworks to the project.Build.cs file. It just can’t compile.
Do I have to rebuild the entire engine after add frameworks or dependencies to my project?