Good day. I had such a nuisance: I understood my mess of files in the Finder, and moved all my Xcode projects into one daddy, and now nothing works. When you run an application on iOS Simulator, Xcode gives the following error:

ld: file not found: /Users/Ruslan/Library/Developer/Xcode/DerivedData/Calls-hlhsyihopkugutdgqycqdplhqqoh/Build/Products/Debug-iphonesimulator/CallMe.app/CallMe

How to solve it? On the Internet I found a type solution in Project -> Build phases -> Compile Sources to add missing or delete extra .m files, but I don’t repeat them and there are no missing ones. thanks for the help

    2 answers 2

    Try to clear the project, maybe there is some link stuck to the old directory, well, and the simulator to the heap, although he has nothing to do with it. If it does not help, open the project file in a text editor and look for files with an absolute path, perhaps somewhere the link is not there. Previously, it was always with localization files, with raw materials I did not see, but you never know

    • And which file to open in a text editor? Is the project file the file with the .xcodeproj extension? - Ruslan_T
    • xcodeproj is a package, not a file, the real project file inside it is called project.pbxproj - aknew
    • I am in general for ensuring that all files related to the project are in the project. Here is the setting for this Preferences-> Location-> Derived Data-Relative! [Alt text] [1] [1]: i.imgur.com/7EjZCIm.png - Zatoichy
    • I solved the problem, the bottom line was that when I cleaned up all my documents, I did not move the folder with the project, but copied and pasted and deleted the original, and a copy of the project referred to the original file, which, in fact, and no. - Ruslan_T
    • Thanks for the help! - Ruslan_T

    I decided to share, maybe it will save someone a week of time, I spent that much on solving this problem.

    If you get an error the linker command failed with exit code 1

    Carefully read the lines that go above. If there is a mention of armv7, then in Valid Architectures in the settings of your project and target, remove this value.