1

我正在尝试将 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)

谢谢

4

1 回答 1

3

删除 libGoogleAnalytics_debug.a 和 facebook old sdk 解决了我的问题

于 2013-03-14T14:40:39.023 回答