react-native-maps: iOS: 'RCTImageLoader.h' file not found.
Trying to add airbnb/react-native-maps to my react native project and follow the guide at https://github.com/airbnb/react-native-maps/blob/master/docs/installation.md. Option 1,
After done, I cannot run the project in Xcode, it gives the error, ‘RCTImageLoader.h’ file not found.
I hv tried run rnpm link and it cannot go through,
rnpm-link info Android module react-native-maps is already linked
rnpm-link info Linking react-native-maps ios dependency
rnpm-link ERR! It seems something went wrong while linking. Error: ENOENT: no such file or directory, open '/Users/nedved/Desktop/NativeCreditcard_office/node_modules/react-native-maps/ios/AirGoogleMaps.xcodeproj/project.pbxproj'
Please file an issue here: https://github.com/rnpm/rnpm/issues
I can find the file /Users/XXXX/node_modules/react-native-maps/ios/AirGoogleMaps.xcodeproj locally, but when clicking, “Project /Users/XXXX/node_modules/react-native-maps/ios/AirGoogleMaps.xcodeproj cannot be opened because it is missing its project.pbxproj file.”
Any idea?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17
If you use CocoaPods, may be you should check your Podfile whether you have add RCTImage, like this:
pod 'React', :path => '../node_modules/react-native', :subspecs => [ 'Core', 'CxxBridge', 'DevSupport', 'RCTText', 'RCTImage', # add RCTImage, then **pod install** 'RCTNetwork', 'RCTWebSocket', ]@gerard0315 got a fixed for it just statically define where your react-native modules are. The header location in the package wont work if you have your project nested one level down of your node modules …
folder scaffolding issue in my case
I got this issue on RN0.61.1
#import <React/RCTImageLoader.h>inAIRMapOverlay.mgives error:'React/RCTImageLoader.h' file not foundHere is my podfile:
I think it deserves a new issue, especially since it’s not as straightforward, there are other bugs like
property 'imageLoader' not found on object of type 'RCTBridge *'same issue. root cause is
React/RCTImageLoader.his replaced with ‘React/RCTImageLoaderProtocol.h’ in React-Native 0.61Please update the library.