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
Similar Posts:
- React Native Project Run Error [How to Solve]
- Solutions to the exception of cannot simply fetch multiple bags
- cannot simultaneously fetch multiple bags
- [Solved] LD: library not found for – XXX when Xcode compiles code
- [MERFISH Error] Error2 ld/ symbol(s) not found for architecture x86_64
- [Solved] Xcodebuild error: Command PhaseScriptExecution failed with a nonzero exit code
- [Solved] com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadius not found.
- [Solved] Flutter – AAPT: error: resource android:attr/dialogCornerRadiu…
- [Solved] com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed