search

Home  >  Q&A  >  body text

objective-c - linker command failed with exit code 1 error when running the code

I copied a copy of his project code from a friend, but when I ran it, I got the error linker command failed with exit code 1 (use -vto see invocation),

某草草某草草2792 days ago5426

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-05-02 09:26:26

    Obviously, the path is wrong and the compiler did not find that folder.
    Check whether the path is correct. If not, check whether the folder has been added to the project, and then check the Library Search Path to see if there is any setting error.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-02 09:26:26

    The address of the framework link is wrong

    Delete AFNetwork from here and re-link it

    reply
    0
  • Cancelreply