React Native Facebook SDK:链接器命令失败,退出代码为1(使用-v查看调用)

时间:2018-10-21 12:44:16

标签: ios facebook react-native facebook-javascript-sdk facebook-ios-sdk

我正在构建一个React Native应用程序。要使用Facebook登录,我将Facebook SDK添加到了我的应用程序中。在iOS上进行开发期间,以及在Android上进行开发和生产期间,一切工作都很好。

但是,当我按照this guide from the docs构建用于生产的应用的发布版本时,我看到以下错误:

// ... more of the 'duplicate' messages
duplicate symbol _OBJC_IVAR_$_FBSDKAppInviteContent._appLinkURL in:
    /Users/<me>/Library/Developer/Xcode/DerivedData/<appname>-cbmpafcjctjlojapgnzaxdbmmopf/Build/Products/Release-iphonesimulator/FBSDKShareKit/libFBSDKShareKit.a(FBSDKAppInviteContent.o)
    /Users/<me>/Startup/react-native/<appname>/ios/FBSDKShareKit.framework/FBSDKShareKit(FBSDKAppInviteContent.o)
duplicate symbol _OBJC_IVAR_$_FBSDKAppInviteContent._appInvitePreviewImageURL in:
    /Users/<me>/Library/Developer/Xcode/DerivedData/<appname>-cbmpafcjctjlojapgnzaxdbmmopf/Build/Products/Release-iphonesimulator/FBSDKShareKit/libFBSDKShareKit.a(FBSDKAppInviteContent.o)
    /Users/<me>/Startup/react-native/<appname>/ios/FBSDKShareKit.framework/FBSDKShareKit(FBSDKAppInviteContent.o)
ld: 1164 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我搜索了此错误,但找不到任何有关此的信息。怎么了?为什么仅在为生产而构建时会出现此错误?

0 个答案:

没有答案