IOS ERROR: Linker command failed with exit code 1 (use-v to see invocation) cause

Source: Internet
Author: User

In iOS development, many people will encounter such an error

Linker command failed with exit code 1 (use-v to see invocation)

The possible causes are as follows:

1. Quote error, make ***.h. m, check all your references;

2. Then you refer to the third-party library, you add the file is the system does not have a third-party library of the. m file in the compilation, you have to add files to the project attention;

3. Locate the build Settings->linking->other Linker Flags and modify this property to-all_load or-OBJC;

4. See if there is a newly added file with the same name as the previous file;

5. The name of a class appears in the error message, go to the original file to see which third-party libraries are #import, exclude these libraries from one another, find the library where the error occurred, and then add them again in accordance with the official steps.

PS. My own problem is the 4th reason, when I re-organize the document, drag the duplicate files in the project;

IOS ERROR: Linker command failed with exit code 1 (use-v to see invocation) cause

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.