iosxcodeadmobsharekitarmv7

Duplicate symbol for armv7s Sharekit and admob


I have application which is using Sharekit and Admob together, app is not compiling because of the dublicate symbols. The problem is that Sharekit requires -all_load flag but this flag is conflicting with admob plugin, but i cant remove the all_load flag and put only ObjC flag because in that case Sharekit won't create the instance of some classes.Maybe someone has the same issue , how to fix it ?


Solution

  • The problem is solving just by replacing -all_load flag to -force_load.

    it should look like this -force_load $(BUILT_PRODUCTS_DIR)/libShareKit.a