thebergamo / react-native-fbsdk-next

MIT License
664 stars 164 forks source link

use of undeclared identifier 'FBSDKApplicationDelegate' in the example app in iOS #410

Closed charmanderCoder closed 1 year ago

charmanderCoder commented 1 year ago

🐛 Bug Report

The build for the given example app fails with the error use of undeclared identifier 'FBSDKApplicationDelegate' in AppDelegate.mm file

Screenshot 2023-04-10 at 12 37 13 PM

To Reproduce

  1. cloned the main repo
  2. yarn example:install
  3. yarn example:start
  4. yarn example:ios

Expected Behavior

The build should succeed without any errors.

Code Example

the same example as given in the docs

Environment

react-native@0.71.6 | MIT | deps: 34 | versions: 1341
A framework for building native apps using React
https://github.com/facebook/react-native#readme

bin: react-native

dist
.tarball: https://registry.npmjs.org/react-native/-/react-native-0.71.6.tgz
.shasum: e8f07baf55abd1015eaa7040ceaa4aa632c2c04f
.integrity: sha512-gHrDj7qaAaiE41JwaFCh3AtvOqOLuRgZtHKzNiwxakG/wvPAYmG73ECfWHGxjxIx/QT17Hp37Da3ipCei/CayQ==
.unpackedSize: 59.7 MB

dependencies:
@jest/create-cache-key-function: ^29.2.1             invariant: ^2.2.4
@react-native-community/cli-platform-android: 10.2.0 jest-environment-node: ^29.2.1
@react-native-community/cli-platform-ios: 10.2.1     jsc-android: ^250231.0.0
@react-native-community/cli: 10.2.2                  memoize-one: ^5.0.0
@react-native/assets: 1.0.0                          metro-react-native-babel-transformer: 0.73.9
@react-native/normalize-color: 2.1.0                 metro-runtime: 0.73.9
@react-native/polyfills: 2.0.0                       metro-source-map: 0.73.9
abort-controller: ^3.0.0                             mkdirp: ^0.5.1
anser: ^1.4.9                                        nullthrows: ^1.1.1
base64-js: ^1.1.2                                    pretty-format: ^26.5.2
deprecated-react-native-prop-types: ^3.0.1           promise: ^8.3.0
event-target-shim: ^5.0.1                            react-devtools-core: ^4.26.1
(...and 10 more.)

maintainers:
- react-native-bot <opensource+react-native-bot@fb.com>
- rsnara <ramanpreet.nara@gmail.com>
- cipolleschi <cipolleschi@fb.com>
- dmitryrykun <dmitry.rykun@gmail.com>
- fb <opensource+npm@fb.com>
- fkgozali <fkgozali@gmail.com>
- lunaleaps <lunaleaps@gmail.com>
- yungsters <yungsters@gmail.com>
- cortinico <corti.nico@gmail.com>
- eliwhite <npm@eli-white.com>
- hectorramos <hector@hectorramos.com>

dist-tags:
0.63-stable: 0.63.5                     0.67-stable: 0.67.5                     latest: 0.71.6
0.64-stable: 0.64.4                     0.68-stable: 0.68.6                     next: 0.72.0-rc.1
0.65-stable: 0.65.3                     0.69-stable: 0.69.9                     nightly: 0.0.0-20230409-2110-a6690bfb7
0.66-stable: 0.66.5                     0.70-stable: 0.70.8

published a week ago by react-native-bot <opensource+react-native-bot@fb.com>

Things I tried

  1. I did visit https://github.com/facebookarchive/react-native-fbsdk/issues/732 and had a look at this comment and also this one
supto09 commented 1 year ago

Faced the same issue. The solution is in

https://github.com/thebergamo/react-native-fbsdk-next/issues/317#issuecomment-1264750053

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.