我试图将 Parse 添加到我拥有的当前应用程序中。它已经包含了 ShareKit,其中包含 FacebookSDK 的部分(?)作为子模块。
它还要求我拥有链接器标志:-ObjC -all_load
为了使 Parse 能够使用它,我需要包含我正在做的 FacebookSDK。但是一旦我这样做,我在编译时遇到了重复的问题。
知道如何解决这个问题吗?
在这里发现了类似的错误: https ://github.com/ShareKit/ShareKit/issues/731
我无法删除 FacebookSDK.framework,因为我需要 Parse 使用 -ObjC -all_load 标志进行编译。
编辑:
这是完整的错误:
重复符号 _OBJC_IVAR_$_FBRequest._url 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/ FBRequest.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBRequest.o) 重复符号_OBJC_IVAR_$_FBRequest._connection 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W- evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBRequest.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBRequest. o) 重复符号 _OBJC_IVAR_$_FBRequest._responseText 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBRequest.o /Users/martinlang/Development /clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBRequest.o) 重复符号 _OBJC_IVAR_$_FBRequest._error 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W。 build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBRequest.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBRequest.o) 重复符号_OBJC_IVAR_$_FBRequest._delegate在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W。build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBRequest.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBRequest.o) 重复符号_OBJC_IVAR_$_FBRequest._state在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBRequest.o /Users/martinlang /Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBRequest.o) 重复符号 _OBJC_CLASS_$_FBRequest 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W。 build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBRequest.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK。框架/FacebookSDK(FBRequest.o) 重复符号_OBJC_METACLASS_$_FBRequest 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/ Objects-normal/i386/FBRequest.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBRequest.o) 重复符号 _OBJC_IVAR_$_FBLoginDialog._loginDelegate 在:/Users/martinlang/Library/Developer/ Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBLoginDialog.o/Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK。 framework/FacebookSDK(FBLoginDialog.o) 重复符号 _OBJC_CLASS_$_FBLoginDialog 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBLoginDialog.o /Users/martinlang/Development /clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBLoginDialog.o) 重复符号 _OBJC_METACLASS_$_FBLoginDialog 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/ Release-iphonesimulator/Club W.build/Objects-normal/i386/FBLoginDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBLoginDialog.o) 重复符号_OBJC_IVAR_$_FBDialog._orientation在: /Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号_OBJC_IVAR_$_FBDialog._webView在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang /Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号 _OBJC_IVAR_$_FBDialog._modalBackground 查看在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK。framework/FacebookSDK(FBDialog.o) 重复符号 _OBJC_IVAR_$_FBDialog._loadingURL 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W。 build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号 _OBJC_IVAR_$_FBDialog._delegate 在:/Users/martinlang/Library/ Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/ FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号 _OBJC_IVAR_$_FBDialog._showingKeyboard 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development /clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号 _OBJC_IVAR_$_FBDialog._closeButton 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W。 build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号_OBJC_IVAR_$_FBDialog._spinner在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W。build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号_OBJC_IVAR_$_FBDialog._params在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang /Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号 _OBJC_IVAR_$_FBDialog._serverURL 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK。框架/FacebookSDK(FBDialog.o) 重复符号_OBJC_CLASS_$_FBDialog 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/ Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(FBDialog.o) 重复符号 _OBJC_METACLASS_$_FBDialog 在:/Users/martinlang/Library/Developer/Xcode/ DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/FBDialog.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/ FacebookSDK(FBDialog.o) 重复符号 _OBJC_IVAR_$_Facebook._requests 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/Facebook.o /Users/martinlang/Development /clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(Facebook.o) 重复符号 _OBJC_IVAR_$_Facebook._fbDialog 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W. build/Release-iphonesimulator/Club W.build/Objects-normal/i386/Facebook.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(Facebook.o) 重复符号_OBJC_IVAR_$_Facebook._appId在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W。build/Release-iphonesimulator/Club W.build/Objects-normal/i386/Facebook.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(Facebook.o) 重复符号_OBJC_IVAR_$_Facebook._urlSchemeSuffix在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/Facebook.o /Users/martinlang /Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(Facebook.o) 重复符号 _OBJC_IVAR_$_Facebook._sessionDelegate 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/Facebook。o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(Facebook.o) 重复符号 _OBJC_CLASS_$_Facebook 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/ Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/Facebook.o /Users/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(Facebook.o) 重复符号_OBJC_METACLASS_$_Facebook 在:/Users/martinlang/Library/Developer/Xcode/DerivedData/Club_W-evqasilyjjnftqelkocaozbwkgyq/Build/Intermediates/Club W.build/Release-iphonesimulator/Club W.build/Objects-normal/i386/Facebook.o/用户/martinlang/Development/clubw/ClubW-iPhone/FacebookSDK.framework/FacebookSDK(Facebook.o) ld:架构 i386 clang 的 30 个重复符号:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)