2
/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.

markwalker_
  • 12,078
  • 7
  • 62
  • 99
Avi
  • 21
  • 6

1 Answers1

1

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.

Patrick
  • 1,629
  • 5
  • 23
  • 44
  • actually in my project there are 198 files and it is not easily possible to check each and every file. – Avi Apr 12 '16 at 11:38
  • Are you importing the library twice? Or the dependencies? Check it. – Patrick Apr 12 '16 at 11:40
  • i have checked all the libraires are added only once. – Avi Apr 12 '16 at 11:56
  • 1
    thank you patrick for your help... actually yesterday i got the solution is that code was not running because of xcode version problem, my xcode version is 6.4 and it was running on xcode 7 or above. – Avi Apr 14 '16 at 06:06