Comments (24)
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
from react-native-fbsdk-next.
@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)
from react-native-fbsdk-next.
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
from react-native-fbsdk-next.
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
from react-native-fbsdk-next.
@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
from react-native-fbsdk-next.
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
from react-native-fbsdk-next.
@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.
from react-native-fbsdk-next.
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.
from react-native-fbsdk-next.
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.
from react-native-fbsdk-next.
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.
from react-native-fbsdk-next.
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
from react-native-fbsdk-next.
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
from react-native-fbsdk-next.
The only thing being used from the app itself was just
import { Settings } from 'react-native-fbsdk-next';
Settings.initializeSDK();
from react-native-fbsdk-next.
@seamive "being used" != "compiled in with possibly duplicate symbols from different versions of things"
from react-native-fbsdk-next.
i have the same issue as @jacow
from react-native-fbsdk-next.
@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)
from react-native-fbsdk-next.
@jacow @mikehardy Reopen this issue please.
from react-native-fbsdk-next.
We're eager to see new contributors :)
from react-native-fbsdk-next.
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...
from react-native-fbsdk-next.
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
from react-native-fbsdk-next.
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 ?
from react-native-fbsdk-next.
why this issue is closed? @mikehardy
from react-native-fbsdk-next.
@AmirDoreh you can try pod 'AMRAdapterFacebook', '~> 6.5.0.0
from react-native-fbsdk-next.
@srfaytkn Thanks for your offer , i directly started using your package for Admost.
from react-native-fbsdk-next.
Related Issues (20)
- Can't change to another account on login HOT 3
- iOS limited login HOT 14
- Email not retrieving from facebook login HOT 3
- Need help for the facebook sharing HOT 1
- Facebook SDK not initialized error when using react-native-fbsdk-next with Expo HOT 7
- FbLoginManager.loginwithPermissions was called with 1 arguments butt expects 3 arguments HOT 2
- LoginManager.logOut() doesn't remove app from Facebook "Business Integrations" HOT 1
- App switches automatically to limited login when updated to v13 HOT 4
- Access Token is invalid HOT 6
- React native app - Upgrade fbsdk to version 9.0.0 HOT 1
- Mobile product ads aka Advantage+ Catalog Ads not receiving params HOT 2
- Upgrading to v13.0.0 , build failed for android HOT 6
- iOS limited login does not return all possible fields HOT 1
- Invalid ID token from login response. HOT 3
- (iOS) ShareDialog.show(shareContent) does not show any sharing options. HOT 1
- (iOS) Automatic purchase event is not logging in iOS sdk 17.0.0 HOT 3
- Compiling for iOS 13.0, but module 'ExpoModulesCore' has a minimum deployment target of iOS 13.4 HOT 3
- [IOS] Missing 'Cancel' and 'Continue' buttons when login by FB app HOT 6
- iOS limited login sdk 17 HOT 4
- Error while login facebook login in expo app HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-fbsdk-next.