2017-09-28 10 views
0

fllowing 지침을 통해 react-native-fbsdk를 설치했습니다. https://github.com/facebook/react-native-fbsdkReactNative 'React/RCTBundleURLProvider.h'파일이 react-native-fbsdk와 일치하지 않습니다.

그러나, 나는 AppDelegate.m

에 오류가 발생했습니다

파일을 찾을 수 없습니다 '/ RCTBundleURLProvider.h 반작용'을

#import "AppDelegate.h" 
#import <React/RCTBundleURLProvider.h> <- Error here 
#import <React/RCTRootView.h> 
#import "RNFIRMessaging.h" 

제거 반응 - 기본 - fbsdk 그래서 분명히이 라이브러리를이 문제를 해결 문제를 일으킨다. 일이 나는

  • 그들 모두 https://github.com/facebook/react-native/issues/12077
  • 에 SnehaGindi의 의견을 따라하지 않았다 다른 버전 (0.5, 0.6, 0.6.1을)이 React Native 0.40.0 : RCTBundleURLProvider.h” file not found - AppDelegate.m

  • 같은

    1. 편집 스키마를 설치하는 시도 작업.

      내 package.json은 아래와 같습니다. 실마리가 있습니까?

      { 
          "name": "BitcoinApp", 
          "version": "0.0.1", 
          "private": true, 
          "scripts": { 
          "start": "node node_modules/react-native/local-cli/cli.js start", 
          "test": "jest" 
          }, 
          "dependencies": { 
          "axios": "0.16.2", 
          "moment": "2.18.1", 
          "native-base": "2.1.5", 
          "react": "16.0.0-alpha.12", 
          "react-base": "0.2.0", 
          "react-native": "0.45.1", 
          "react-native-app-intro": "1.1.5", 
          "react-native-fbsdk": "^0.6.0", 
          "react-native-fcm": "^7.5.1", 
          "react-native-firebase-analytics": "^3.0.2", 
          "react-native-gifted-form": "0.0.14", 
          "react-native-loading-spinner-overlay": "0.5.0", 
          "react-native-pathjs-charts": "0.0.29", 
          "react-native-scrollable-tab-view": "0.6.6", 
          "react-native-social-share": "^1.1.0", 
          "react-native-store": "0.4.1", 
          "react-navigation": "1.0.0-beta.11" 
          }, 
          "devDependencies": { 
          "babel-jest": "20.0.3", 
          "babel-preset-react-native": "1.9.2", 
          "eslint-config-rallycoding": "^3.2.0", 
          "jest": "20.0.4", 
          "react-test-renderer": "16.0.0-alpha.12" 
          }, 
          "jest": { 
          "preset": "react-native" 
          } 
      } 
      
  • 답변

    0

    해결.

    SDK를 제거하고 지침을 다시 읽습니다. https://developers.facebook.com/docs/ios/getting-started/

    이번에는 "2 단계 : iOS 용 Facebook SDK 다운로드"에서 SDK를 "~/Documents/FacebookSDK"에 배치했습니다.

    SDK 디렉토리가 "~/Documents/FacebookSDK"이외의 위치에 있으므로이 문제가 발생합니다.