Open chaudharyvikram opened 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
Use FBAudienceNetwork 6.4.1 instead as a workaround or updates Facebook SDK to the latest version.
@tmjordan Yes, 6.4.1 SDK is working fine. we also used this version.
@tmjordan How I Can Change FBAudienceNetwork6.4.1? which file i have to change ?
@SafiDS add this line in your podfile
pod 'FBAudienceNetwork', '~> 6.4.1'
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.
Steps to generate issue
import "FBSDKTypeUtility.h"**
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