React-native-image-crop-picker: 'React/RCTBridgeModule.h' file not found after project update

Created on 31 Mar 2017  路  3Comments  路  Source: ivpusic/react-native-image-crop-picker

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.12.9
  • react-native v0.42.3

Platform

  • iOS

Expected behaviour

Compilation should work.

Actual behaviour

Compiling project fails with the following error:

/Users/Jordan/Repositories/ios-app/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h:17:9: 'React/RCTBridgeModule.h' file not found

Just as if Xcode was not able to access React header files.

Attachments

I followed the install instructions in the README, using cocoa pods.
The compilation worked just fine before I updated to RN 42. I updated RNICP as well so it has the new import style that started from RN 40+.
Somehow this is still not working, despite all efforts.

Most helpful comment

@habovh and @alaingoldman:
I was able to fix this by updating "imageCropPicker.xcodeproj" > "Build Settings" > "Header Search Paths" from this:

$(SRCROOT)/../example/node_modules/react-native/React
$(SRCROOT)/../example/node_modules/react-native/Libraries/Image

To this:

$(SRCROOT)/../../react-native/React
$(SRCROOT)/../../react-native/Libraries/Image

Which I believe uses the React Version that is installed in your local project, instead of the one that is in the example project of the repo itself.

Hope this helps --

All 3 comments

Same

@habovh and @alaingoldman:
I was able to fix this by updating "imageCropPicker.xcodeproj" > "Build Settings" > "Header Search Paths" from this:

$(SRCROOT)/../example/node_modules/react-native/React
$(SRCROOT)/../example/node_modules/react-native/Libraries/Image

To this:

$(SRCROOT)/../../react-native/React
$(SRCROOT)/../../react-native/Libraries/Image

Which I believe uses the React Version that is installed in your local project, instead of the one that is in the example project of the repo itself.

Hope this helps --

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhangjunhou picture zhangjunhou  路  3Comments

cwRichardKim picture cwRichardKim  路  3Comments

equesteo picture equesteo  路  3Comments

sergiulucaci picture sergiulucaci  路  3Comments

leelandclay picture leelandclay  路  3Comments