Giter Site home page Giter Site logo

Comments (24)

mikehardy avatar mikehardy commented on August 15, 2024 2

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.

tarasvakulka avatar tarasvakulka commented on August 15, 2024 2

@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.

jacow avatar jacow commented on August 15, 2024 1

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.

mikehardy avatar mikehardy commented on August 15, 2024 1

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.

tarasvakulka avatar tarasvakulka commented on August 15, 2024 1

@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.

mikehardy avatar mikehardy commented on August 15, 2024 1

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.

mikehardy avatar mikehardy commented on August 15, 2024 1

@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.

mikehardy avatar mikehardy commented on August 15, 2024 1

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.

jacow avatar jacow commented on August 15, 2024

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.

mikehardy avatar mikehardy commented on August 15, 2024

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.

mikehardy avatar mikehardy commented on August 15, 2024

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.

teamseamive avatar teamseamive commented on August 15, 2024

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.

teamseamive avatar teamseamive commented on August 15, 2024

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.

mikehardy avatar mikehardy commented on August 15, 2024

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

from react-native-fbsdk-next.

srfaytkn avatar srfaytkn commented on August 15, 2024

i have the same issue as @jacow

from react-native-fbsdk-next.

mikehardy avatar mikehardy commented on August 15, 2024

@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.

tarasvakulka avatar tarasvakulka commented on August 15, 2024

@jacow @mikehardy Reopen this issue please.

from react-native-fbsdk-next.

thebergamo avatar thebergamo commented on August 15, 2024

We're eager to see new contributors :)

from react-native-fbsdk-next.

mikehardy avatar mikehardy commented on August 15, 2024

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.

mikehardy avatar mikehardy commented on August 15, 2024

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.

AmirDoreh avatar AmirDoreh commented on August 15, 2024

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.

AmirDoreh avatar AmirDoreh commented on August 15, 2024

why this issue is closed? @mikehardy

from react-native-fbsdk-next.

srfaytkn avatar srfaytkn commented on August 15, 2024

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

from react-native-fbsdk-next.

AmirDoreh avatar AmirDoreh commented on August 15, 2024

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

from react-native-fbsdk-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.