Search code examples
iosaddthis

Doesn't compile addthis on iOS


I followed the quick guide to install AddThis and I don't know what is wrong, but I can't compile.

I have this errors:

Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_AddThisSDK", referenced from:
      objc-class-ref in FinishingScene.o
  "_OBJC_CLASS_$_FBSession", referenced from:
      objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks in advance!


Solution

  • I haven't used AddThis, but this smells like the library isn't added in to the project properly.

    Click on your target, then Build Phases, then expand Link Binary With Libraries. Make sure all the .a and .framework files you added to the project are listed there.