2017-09-28 4 views
0

J'ai installé react-native-fbsdk en suivant les instructions. https://github.com/facebook/react-native-fbsdkReactNative 'React/RCTBundleURLProvider.h' fichier introuvable avec react-native-fbsdk

Cependant, je suis l'erreur dans AppDelegate.m

'React/RCTBundleURLProvider.h' fichier non trouvé

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

réagit--Désinstallation natif fbsdk résout ce problème en apparence si cette bibliothèque provoque le problème. choses que j'essayé sont

    schéma modifier
  1. comme celui-ci React Native 0.40.0 : RCTBundleURLProvider.h” file not found - AppDelegate.m
  2. installer différentes versions (0.5, 0.6, 0.6.1)
  3. suivi le commentaire de SnehaGindi sur https://github.com/facebook/react-native/issues/12077

tous n'a pas travail.

Mon paquetage.json est illustré ci-dessous. y a-t-il des indices?

{ 
    "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" 
    } 
} 

Répondre

0

Résolu.

SDK désinstallé et de lire à nouveau les instructions suivies. https://developers.facebook.com/docs/ios/getting-started/

Cette fois, dans "Étape 2: Télécharger Facebook SDK pour iOS", placé SDK dans "~/Documents/FacebookSDK". Par conséquent, ce problème est dû au fait que le répertoire SDK est placé autre que "~/Documents/FacebookSDK".