React-native-fbsdk: Compilation error in ios

Created on 3 Aug 2020  路  2Comments  路  Source: facebook/react-native-fbsdk

I have a compilation problem on iOS in version 2.0.0

I added these lines to my info.plist:

<key>CFBundleURLTypes</key>
    <array>
        <dict>
            <key>CFBundleURLSchemes</key>
            <array>
                <string>fb$(FACEBOOK_APP_ID)</string>
            </array>
        </dict>
    </array>
    <key>FacebookAppID</key>
    <string>$(FACEBOOK_APP_ID)</string>
    <key>FacebookDisplayName</key>
    <string>$(APP_NAME)</string>

I added these lines to AppDelegate.m

- (BOOL)application:(UIApplication *)app
            openURL:(NSURL *)url
            options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options
{
  return [[FBSDKApplicationDelegate sharedInstance]application:app
                                                       openURL:url
                                                       options:options];
}

But when run npx react-native run-ios i get this error
image (26)

My mac version: 10.13.6
Xcode version: 10.1
React Native version: 0.63.2

When I rollback react-native-fbsdk to v1.1.2 works

Most helpful comment

I got same issue :+1:

All 2 comments

I got same issue :+1:

Same issue 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aurelienshz picture aurelienshz  路  4Comments

peymancyb picture peymancyb  路  6Comments

emroot picture emroot  路  5Comments

justin808 picture justin808  路  3Comments

pranny picture pranny  路  6Comments