[Problem] Compilation error: Clang:error:linker command failed with exit code 1 and duplicate symbol XXXX in error resolution one of the methods

Source: Internet
Author: User

A new class has been added today (including the M,h,xib file) and has not been called,-the compilation encountered the following error, according to the error prompt,

inch :     /users/xxxx/library/developer/xcode/deriveddata/xxxx-ccqyiywbeowkgmaitropkiovpeou/build/intermediates/ xxxx.build/debug-iphonesimulator/xxxx.build/objects-normal/x86_64/classa.o    /users/xxxx/library/ developer/xcode/deriveddata/xxxx-ccqyiywbeowkgmaitropkiovpeou/build/intermediates/xxxx.build/ debug-iphonesimulator/xxxx.build/objects-normal/x86_64/1for1 (Use- V to see invocation)

Analysis:

Variable param1 error, given two types of ClassA and CLASSB, the view found that in the two class M files are defined in the global static constant param1;

Solution:

Rename the param1 in one of the classes to param2

//////////////////////////////////////////////////////////////////////////////

The above is a situation encountered, check the information on the Internet and others encountered other errors, also package similar errors, you can refer to the solution:

IOS-Appear (linker command failed with exit code 1) Error Summary

iOS encounters an error duplicate symbol XXX in:xxx

[Problem] Compilation error: Clang:error:linker command failed with exit code 1 and duplicate symbol XXXX in error resolution one of the methods

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.