Coder Social home page Coder Social logo

Comments (3)

short-dsb avatar short-dsb commented on August 16, 2024 1

This appears to be due to migrating from v14 of the official Facebook SDK to this package, resulting in an FBSDKCoreKit-Swift.h that was cached from the previous version. Running a clean build in Xcode resolved the issue.

However, this resulted in a new error:

āŒ /Users/dsb/Library/Developer/Xcode/DerivedData/shortboxed-euoiztpisgpuzndyuevmudfutzne/Build/Products/Debug-iphonesimulator/XCFrameworkIntermediates/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h:2519:146: cannot find protocol declaration for 'SFSafariViewControllerDelegate'
@interface _BridgeAPI : NSObject <FBSDKBridgeAPIRequestOpening, FBSDKApplicationObserving, FBSDKURLOpener, FBSDKContainerViewControllerDelegate, SFSafariViewControllerDelegate>

The problem was the order of the #import statements. SafariServices.h must be imported before FBSDKCoreKit-Swift.h. It was being placed after due to my ClangFormat configuration, which declared SortIncludes: true.

Hopefully this helps someone else. šŸ™‚

from react-native-fbsdk-next.

short-dsb avatar short-dsb commented on August 16, 2024 1

@mikehardy You beat me to closing the issue. Thanks for your prompt response!

from react-native-fbsdk-next.

mikehardy avatar mikehardy commented on August 16, 2024

with apologies, others are building fine (as are my projects) so this will not result in a change in this repository and so is not an issue, it's a project-specific problem

you and others may feel free to continue discussion here (and propose a PR to the docs if anything interesting is learned) but I don't have any time personally to troubleshoot project-specific problem

I suggest you build an example from scratch (starting with npx react-native init BuildTest or similar and proving it can work, then figuring out why your project is not working

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.