Avi
Avi

Reputation: 21

ld: 600 duplicate symbols for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

/Users/iph8/Documents/Avi/Current project/XYZ/SourceCode/April12/XYZ_April_12/XYZ/Frameworks/AppLovin/libAppLovinSdk.a(ALTaskCacheNativeAdImages.o)

ld: 600 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Getting this error while running the project on simulator and not able to detect why it's happening while the same code runs on other computers, but not on my computer.

Upvotes: 2

Views: 1104

Answers (1)

Patrick
Patrick

Reputation: 1665

This may happen in the following cases.

  • You have put the same class implementation into two different files;

  • You actually have just one implementation of this class, however you are also linking in your project a framework or library containing a class whose name is exactly the same of yours.

Try finding in the whole project your class and make sure only one copy is available within your project.

Upvotes: 1

Related Questions