我正在尝试将facebook SDK 3.2添加到我的应用程序中,但是在添加-ObjC链接器标志(如他们的视频中所述)后,我收到很多重复警告,并且无法运行该应用程序并显示以下错误:

duplicate symbol _OBJC_IVAR_$_GAI.defaultTracker_ in:
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
duplicate symbol _OBJC_IVAR_$_GAI.dispatcher_ in:
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
duplicate symbol _kGAIProduct in:
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
duplicate symbol _kGAIVersion in:
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)
duplicate symbol _OBJC_IVAR_$_GAI.trackUncaughtExceptions_ in:
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics.a(GAI.o)
    /Users/gool/proj/Frameworks/GANT/libGoogleAnalytics_debug.a(GAI.o)

        /Users/gool/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(Facebook.o)
    ld: 172 duplicate symbols for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

谢谢

最佳答案

删除libGoogleAnalytics_debug.a和Facebook旧的sdk解决了我的问题

09-25 20:43