Xcode 7 Simulator Error "duplicate characters for x86_64 architecture"

My development environment with Xcode 7.2.1 , CocoaPods 1.0.0 and GoogleMaps 1.13.2

I can create the code successfully to create the XXX.ipa file and install it on my iPhone 6 Plus to work correctly.

But when I run the Xcode simulator on the item "iPhone 6" or "iPhone 6 Plus", always get the information below:

"xxxx duplicate characters for x86_64 architecture" "linker command failed with exit code 1 (use -v to call the call)

I am using the following solutions which still cannot fix it.

  • Build options → Enable bitcode → set to “No”

  • Remove -ObjC from other linker flags

  • Project Targer -> Build phases -> compile sources, ckeck do not duplicate files

  • Make sure I'm not # imported.m file

I am wondering if there is any other method to solve this problem, thanks for the help.

+6
source share
4 answers

This error occurs when you linked a library or file twice. The error description will indicate the name of the duplicated file, you can search and make sure that you do not have duplicates. If you find duplicates, remove the link to one of them to play safe

+2
source

I ran into a similar problem.

In my application, I ran my code and created ipa for up to two days. And today, when I try to run the same code without any changes, I get:

ld: 102 repeated characters for x86_64 architecture clang: error: linker command with exit code 1 (use -v to call the call)

The solution to this Linker duplication error can be resolved by removing all of your classes from compilation sources , then click the + button and find the term '.m' . Highlight each class, then click Add . Build and run again.

0
source

This problem can also occur if you import the file ".m" instead of ".h" by mistake. I know this may seem like stupid advice, but this is what I did in my case.

0
source

I solved this problem by removing the -all_load flag in Build Settings-> Other Linker flags .

0
source

All Articles