I have problem with Xcode, keeps giving me a linker error, and it doesn\'t build the project. The following is the error am getting
ld: file not found:
Make a deep clean of your project by ⌘ Clean
(Menu >> Product >> Clean)
As some of the fellow developers have mentioned here, the root cause of the error was "Change in Product Name". I fixed it by :
Go to [project]Tests -> general
Select Host Application
Credits : https://stackoverflow.com/a/28906400/2164029
I got this fixed by selecting the Tests target and searching for Bundle Loader in Build Settings and changing the product name in that path. I got this error because I have changed the Product name. The Bundle loader has the old product name in the path, so it searches for that path.
I found the solution, I have removed what ever was in dependency. Build Phases -> target dependancies remove whatever in there. if there's test target also click on the test in the build phases in the target dependancies remove what ever in there.
I got the same issue. What I did was to look for a different 'Product Name' listed under Build Settings. I found the old Product Name still listed under Packaging (Both the Product Name and Product Module Name had the old name). I changed it to the new one and the project compiled without error.
I solved by running pod deintegrate https://github.com/CocoaPods/cocoapods-deintegrate:
pod deintegrate
pod install