我尝试将 iOS 版 FacebookSDK 集成到 React Native 中。我按照入门指南中的所有步骤操作,现在在运行应用程序时我得到一个红色矩形而不是登录按钮。
当我尝试运行“react-native link react-native-fbsdk”时,我得到了这个输出:
rnpm-install info Android module react-native-fbsdk is already linked
rnpm-install info Linking react-native-fbsdk ios dependency
rnpm-install ERR! Something went wrong while linking. Error: Expected "/*", "//", or "{" but "<" found.
Please file an issue here: https://github.com/facebook/react-native/issues
Expected "/*", "//", or "{" but "<" found.
- 我的 node_modules 中有 react-native-fbsdk
- 我在 Build Settings -> Framework Search Paths in Xcode 中有 Facebook SDK 的路径
- 我在 Build Phases -> Link Binary with Libraries 中链接了框架