Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate symbols for architecture x86_64 #63

Closed
jacow opened this issue Jun 27, 2021 · 24 comments
Closed

duplicate symbols for architecture x86_64 #63

jacow opened this issue Jun 27, 2021 · 24 comments

Comments

@jacow
Copy link

jacow commented Jun 27, 2021

I got this error after i remove the old version "react-native-fbsdk" and install "react-native-fbsdk-next" and run it on ios. Is there anyone know why it happened ? I'm using rn 0.64.2 and newest react-native-fbsdk-next

duplicate symbol 'OBJC_CLASS$_FBSDKBase64' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBase64.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBase64.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKBase64' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBase64.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBase64.o)
duplicate symbol 'OBJC_CLASS$_FBSDKBasicUtility' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBasicUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBasicUtility.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKBasicUtility' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBasicUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBasicUtility.o)
duplicate symbol '_fb_dispatch_on_default_thread' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBasicUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBasicUtility.o)
duplicate symbol '_fb_dispatch_on_main_thread' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKBasicUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKBasicUtility.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._observers' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._processedCrashLogs' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._dataExtractor' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_CLASS$_FBSDKCrashHandler' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKCrashHandler' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKMappingTableIdentifier' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._fileManager' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKCrashTimestamp' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKCrashReason' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKAppVersion' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKDeviceOSVersion' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._isTurnedOn' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKDeviceModel' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKCallstack' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKCrashHandler._bundle' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol '_kFBSDKMapingTable' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKCrashHandler.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKCrashHandler.o)
duplicate symbol 'OBJC_IVAR$_FBSDKJSONValue._rawObject' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_IVAR$_FBSDKJSONField._rawObject' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol '_FBSDKCreateJSONFromString' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_CLASS$_FBSDKJSONValue' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKJSONValue' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_CLASS$_FBSDKJSONField' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKJSONField' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKJSONValue.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKJSONValue.o)
duplicate symbol 'OBJC_CLASS$_FBSDKLibAnalyzer' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKLibAnalyzer.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKLibAnalyzer.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKLibAnalyzer' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKLibAnalyzer.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKLibAnalyzer.o)
duplicate symbol 'OBJC_CLASS$_FBSDKTypeUtility' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKTypeUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKTypeUtility.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKTypeUtility' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKTypeUtility.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKTypeUtility.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSession._session' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_CLASS$_FBSDKURLSession' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKURLSession' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSession._delegateQueue' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSession._delegate' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSession.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSession.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._handler' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._loggerSerialNumber' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._task' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_CLASS$_FBSDKURLSessionTask' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKURLSessionTask' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._requestStartDate' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol 'OBJC_IVAR$_FBSDKURLSessionTask._requestStartTime' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKURLSessionTask.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKURLSessionTask.o)
duplicate symbol '_FBSDKAppEventCity' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventCountry' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventGender' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventZip' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventEmail' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventDateOfBirth' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventState' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol 'OBJC_CLASS$_FBSDKUserDataStore' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol 'OBJC_METACLASS$_FBSDKUserDataStore' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventPhone' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventFirstName' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventLastName' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventExternalId' in:
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/macos/Library/Developer/Xcode/DerivedData/Subscribers-gprnudlwzckogsayiqfajngwctkx/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
ld: 58 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@mikehardy
Copy link
Collaborator

Hi there! You might try npx react-native-clean-project after making absolutely sure that you have removed the old version so there are not two. Then after that command re-try pod install and rebuild

@jacow
Copy link
Author

jacow commented Jun 28, 2021

Hi there! You might try npx react-native-clean-project after making absolutely sure that you have removed the old version so there are not two. Then after that command re-try pod install and rebuild

Thank you for your reply, but it still the same on me.

@mikehardy
Copy link
Collaborator

Unfortunately, unless you can reproduce this in the sample app (or a minimal reproducible example https://stackoverflow.com/help/minimal-reproducible-example) I must conclude this is a project-specific issue - specific to your project. I don't expect anything discovered here will result in a change in this module as the current version is working correctly in my projects and the example, so I'm not dedicating any effort to it personally.

@jacow
Copy link
Author

jacow commented Jun 28, 2021

The project finally build succeeded after i manually delete duplicate lib on FBSDKCoreKit_Basics. It's not fully fixed, because i should always do that after do pod install. Hopefully it will fully fixed on the next version. Thank you

@jacow jacow closed this as completed Jun 28, 2021
@mikehardy
Copy link
Collaborator

Glad to hear you are moving forward. If you can make a reproducible example that shows the module's at fault we can fix something but otherwise I'd definitely dig into your project, something seems seriously wrong there if you have to manually do something

@teamseamive
Copy link

teamseamive commented Jul 6, 2021

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/seamive/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
    /Users/seamive/Library/Developer/Xcode/DerivedData/mySuperApp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventFirstName' in:
    /Users/seamive/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
    /Users/seamive/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventLastName' in:
    /Users/seamive/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
    /Users/seamive/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)
duplicate symbol '_FBSDKAppEventExternalId' in:
    /Users/seamive/Library/Developer/Xcode/DerivedData/superapp-cfatsrwpxtvtdwfboqdkuquttydf/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
    /Users/seamive/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

We deleted node_modules, Pods & Podfile.lock
Then did
yarn
cd ios && pod install --repo-update

seamive@phoenix➜ superapp git:(master) npx react-native info
info Fetching system and libraries information...
System:
    OS: macOS 11.4
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 703.73 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 16.4.2 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.18.1 - /usr/local/bin/npm
    Watchman: 2021.06.07.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 28, 30
      Build Tools: 30.0.2, 30.0.3, 31.0.0
      System Images: android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 4.2 AI-202.7660.26.42.7486908
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: 16.0.1 - /usr/local/opt/openjdk/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: ^0.64.2 => 0.64.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

@mikehardy
Copy link
Collaborator

fbads and fbsdk-next may conflict.
We need a https://stackoverflow.com/help/minimal-reproducible-example in order to investigate - best if based off a fork of this repo and the example provided

@teamseamive
Copy link

The only thing being used from the app itself was just

import { Settings } from 'react-native-fbsdk-next';
Settings.initializeSDK();

@mikehardy
Copy link
Collaborator

@seamive "being used" != "compiled in with possibly duplicate symbols from different versions of things"

@srfaytkn
Copy link

i have the same issue as @jacow

@mikehardy
Copy link
Collaborator

@srfaytkn I look forward to your reproducible example. Until then though, how exactly should anyone trying to help you proceed 🤔 ? (rhetorical question: no one should burn any time trying to reproduce someone else's problem, it is on you the reporter, to cleanly reproduce it and demonstrate it)

@tarasvakulka
Copy link

tarasvakulka commented Jul 29, 2021

@srfaytkn I look forward to your reproducible example. Until then though, how exactly should anyone trying to help you proceed 🤔 ? (rhetorical question: no one should burn any time trying to reproduce someone else's problem, it is on you the reporter, to cleanly reproduce it and demonstrate it)

Reproducible example: https://github.com/tarasvakulka/RnFbsdkExample.git

Looks like needed update FacebookSdk to 11.0.1 in react-native-fbsdk-next, because FBSDKCoreKit (9.3) from react-native-fbsdk-next and FBSDKCoreKit_Basics (11.0.1) from FBAudienceNetwork (6.5.1) make duplicate symbols:

duplicate symbol '_FBSDKAppEventExternalId' in:
/Users/username/Library/Developer/Xcode/DerivedData/RnFbsdkExample-embqdzudpolhhtbozqhfuvgazhef/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/username/Library/Developer/Xcode/DerivedData/RnFbsdkExample-embqdzudpolhhtbozqhfuvgazhef/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)

Xcode: 12.5.1

@tarasvakulka
Copy link

@jacow @mikehardy Reopen this issue please.

@mikehardy
Copy link
Collaborator

No, if it's the sdk update we're tracking that elsewhere. Obviously the sdk must be included once and only once, in a single version. This is an open source repository and it relies on community contributions, someone needs to forward port to sdk v11. Until then, you must use versions that line up on the v9 sdk

@thebergamo
Copy link
Owner

We're eager to see new contributors :)

@mikehardy
Copy link
Collaborator

Note, a useful byproduct of your investigation could be a docs pr that tells people which versions of this lib and others all depend on ios sdk v9...

@mikehardy
Copy link
Collaborator

We're eager to see new contributors :)

Hear hear on that. I definitely have not had the time and may not ever have the time to do the v11 forward port. Here's the link though for completeness, apparently someone sort of had it working but then went silent and no PR 😭 #55

@tarasvakulka
Copy link

@srfaytkn I look forward to your reproducible example. Until then though, how exactly should anyone trying to help you proceed 🤔 ? (rhetorical question: no one should burn any time trying to reproduce someone else's problem, it is on you the reporter, to cleanly reproduce it and demonstrate it)

Reproducible example: https://github.com/tarasvakulka/RnFbsdkExample.git

Looks like needed update FacebookSdk to 11.0.1 in react-native-fbsdk-next, because FBSDKCoreKit (9.3) from react-native-fbsdk-next and FBSDKCoreKit_Basics (11.0.1) from FBAudienceNetwork (6.5.1) make duplicate symbols:

duplicate symbol '_FBSDKAppEventExternalId' in:
/Users/username/Library/Developer/Xcode/DerivedData/RnFbsdkExample-embqdzudpolhhtbozqhfuvgazhef/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/libFBSDKCoreKit.a(FBSDKUserDataStore.o)
/Users/username/Library/Developer/Xcode/DerivedData/RnFbsdkExample-embqdzudpolhhtbozqhfuvgazhef/Build/Products/Debug-iphonesimulator/FBSDKCoreKit_Basics/libFBSDKCoreKit_Basics.a(FBSDKUserDataStore.o)

Xcode: 12.5.1

For everyone who have this problem, just use FBAudienceNetwork (6.5.0) for compatibility with react-native-fbsdk-next (4.3.0)

@AmirDoreh
Copy link

my problem starts when one of the packages i am usinng (Admost) start installing 'FBSDKCoreKit_Basics ~> 11.1' , then it makes tons of duplications which all of them are related to this .
how can i avoid manage it ?

@AmirDoreh
Copy link

why this issue is closed? @mikehardy

@srfaytkn
Copy link

srfaytkn commented Aug 4, 2021

@AmirDoreh you can try pod 'AMRAdapterFacebook', '~> 6.5.0.0

@mikehardy
Copy link
Collaborator

@srfaytkn it is closed for the reasons written above, and tracked authoritatively in the link to the forward-port needed here before you can start including newer versions of facebook-ios-sdk in other modules.

@mikehardy
Copy link
Collaborator

For anyone else reading this:

Until someone does the work to forward-port this module to facebook-ios-sdk newer versions ( ---> #55 ) you must ensure that all other modules use only the facebook-ios-sdk that this module is compatible with.

If you attempt to mix-and-match, whether you knew that is what you were doing or not, you will have this problem.

@AmirDoreh
Copy link

@srfaytkn Thanks for your offer , i directly started using your package for Admost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants