Iosbug debug-01-error-duplicate symbols for architecture

After the project goes online, how to reduce customers’ doubts about the delivery?Here is the secret script of three moves>>>

Error – duplicatesymbols for architecture 386


ld: 1 duplicate symbol for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

When compiling the program, the above error occurred, LD: 1 duplicate symbol for architecture i386. After looking at the error message, the reason for the error was not clearly put forward. However, from the literal meaning analysis, it seems to be repeated conflict. Later, the reason was found out that when the third party framework was introduced, the main entry method was included in the framework code of the third party, it is impossible to have two main entries in a project. I’m so depressed. After a long time, I finally found this low-level error and deleted the main. M file in the third-party framework. OK

there is another way, undefined symbols for architecture i386:

The description is missing some kind of framework, or class

Add some frames or classes according to the prompts

In these two cases, when multiple people are developing, or when multiple projects are integrating and reusing code copies, this problem often occurs

Similar Posts: