callstack / react-native-fbads

Facebook Audience SDK integration for React Native
MIT License
439 stars 142 forks source link

51 duplicate symbols for architecture x86_64 #302

Open chaudharyvikram opened 3 years ago

chaudharyvikram commented 3 years ago

Ad Modules

-Banner Ads -Interstitial Ads

Platforms

-iOS

Versions

Issue

When we try to install pod after installing npm package of Facebook ads, There are three pods are installing.

After this we try to run our app and it throws error in FBSDKUtility and SessionProvider in FBSDKCoreKit_Basics Pod folder. after importing appropriate packages for error, we tried to run again our app. But At build time FBSDKCoreKit_Basics conflicts with FBSDKCoreKit which is installed for Facebook login functionality.

Screenshot 2021-06-29 at 6 08 10 PM

Steps to generate issue

Screenshot 2021-06-29 at 5 58 03 PM

Screenshot 2021-06-29 at 6 01 09 PM

and add below line after removing above code #import <FBSDKCoreKit_Basics/FBSDKCoreKit_Basics.h>

Please look into this asap. We tried almost all solution available in google search.

Thank You

teamseamive commented 3 years ago

The same error seems to occur

Packages info:

    "react": "17.0.1",
    "react-native": "^0.64.2",
    "react-native-fbads": "^7.0.5",
    "react-native-fbsdk-next": "^4.3.0",

Error Thrown

duplicate symbol '_FBSDKAppEventPhone' in:
    /Users/sagar/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
    /Users/sagar/Library/Developer/Xcode/DerivedData/mySuperApp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventFirstName' in:
    /Users/sagar/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
    /Users/sagar/Library/Developer/Xcode/DerivedData/elliel-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventLastName' in:
    /Users/sagar/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
    /Users/sagar/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventExternalId' in:
    /Users/sagar/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
    /Users/sagar/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
ld: 58 duplicate symbols for architecture x86_64
tmjordan commented 3 years ago

Use FBAudienceNetwork 6.4.1 instead as a workaround or updates Facebook SDK to the latest version.

chaudharyvikram commented 3 years ago

@tmjordan Yes, 6.4.1 SDK is working fine. we also used this version.

SafiDS commented 3 years ago

@tmjordan How I Can Change FBAudienceNetwork6.4.1? which file i have to change ?

tmjordan commented 3 years ago

@SafiDS add this line in your podfile

pod 'FBAudienceNetwork', '~> 6.4.1'