Linker command failed with exit code 1

I have exportred codea project and trying to add some code in an objective c project. When added a cocoa pod library I had the linker command failed error. After struggling for hours I found a solution that worked(build phases-link binary with libraries and I added the library. I don’t understand why I had to do that manually). After some days all of a sudden I saw the same error message again and I cannot find a workaround. The only thing I can remember is that I added a new library(AFNetworking) but I removed it after a while. I cannot understand what is wrong with the pods and the project but something is not working well. I would appreciate if you could give me any ideas of how to solve the problem. Thanks in advance.

@tdermaris If you send me the code privately, I could possibly locate the issue