Tag Archives: -duplicate symbols for architecture

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

duplicatesymbol_mainin:
/Users/mac/Library/Developer/Xcode/DerivedData/ItcastWeibo-ejradctorpweaxgnoyvyothlpxbj/Build/Intermediates/ItcastWeibo.build/Debug-iphonesimulator/ItcastWeibo.build/Objects-normal/i386/main-BCA160EE79D38D53.o
/Users/mac/Library/Developer/Xcode/DerivedData/ItcastWeibo-ejradctorpweaxgnoyvyothlpxbj/Build/Intermediates/ItcastWeibo.build/Debug-iphonesimulator/ItcastWeibo.build/Objects-normal/i386/main-F335E396EB42357.o
ld:1duplicatesymbolforarchitecturei386
clang:error:linkercommandfailedwithexitcode1(use-vtoseeinvocation)

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