React-native-image-crop-picker: Lexical or Preprocessor Issue

Created on 28 Feb 2017  路  12Comments  路  Source: ivpusic/react-native-image-crop-picker

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.12.4
  • react-native v0.41.0

Platform

Tell us to which platform this issue is related

  • iOS

Expected behaviour

Run without error

Actual behaviour

Cannot run because of the error in the screenshot

Steps to reproduce

This happened when I updated the Xcode to the latest beta version because my app needs to run on iOS 10.

Attachments

screen shot 2017-02-28 at 03 50 22

// stacktrace or any other useful debug info
Check dependencies

warning: no rule to process file '/Users/user1/Desktop/project1/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h' of type sourcecode.c.h for architecture armv7
warning: no rule to process file '/Users/user1/Desktop/project1/node_modules/react-native-image-crop-picker/ios/UIImage-Resize/UIImage+Resize.h' of type sourcecode.c.h for architecture armv7
warning: no rule to process file '/Users/user1/Desktop/project1/node_modules/react-native-image-crop-picker/ios/ImageCropPicker.h' of type sourcecode.c.h for architecture arm64
warning: no rule to process file '/Users/user1/Desktop/project1/node_modules/react-native-image-crop-picker/ios/UIImage-Resize/UIImage+Resize.h' ofproject1type sourcecode.c.h for architecture arm64

Most helpful comment

I'm on react native 0.38.0 and can't upgrade now, so some of the proposed solutions here don't work. For those in the similar state, perhaps this will help:

To get past this problem I did the following:

1) Get v1.6.1 of RSKImageCropper (https://github.com/ruslanskorb/RSKImageCropper/releases/tag/1.6.1)
2) Delete RSKImageCropper.framework from my project
3) Drop new RSKImageCropper.framework into the top of my project (copy files)
4) Open node_modules/react-native-image-crop-picker/ios and replace RSKImageCropper folder with new one from download above (#1)
5) In Xcode, Add back in the embedded binary for RSKImageCropper
6) Clean and build.

This did it for me. My react-native-image-crop-picker is at 0.11.2 for now. I can't take RN >0.38.0 without some significant changes I'm not ready yet to make (don't get me started on the whole breaking changes bit...)

All 12 comments

Same issue..

Thanks that worked !

After updating my xCode to 8.3 today i'm now getting this same error. And the solution above did not work for me.

Had similar issue again with xcode 8.3 beta 4. However with beta 5 no issues ! did u check with beta 5 ?

same issue here with 8.3 and ios 10.3. will try with beta 5

no luck with beta 5, still getting the issue image attachments:
image
image

Hi @cwRichardKim , did you try to get the last version? See https://github.com/ivpusic/react-native-image-crop-picker/issues/281

unfortunately i'm on .29
decided it was about time to upgrade so i'm going through that process right now

edit: it took 3 hours, but i managed to successfully upgrade to .42

@cwRichardKim Okay, good Luck!

I'm on react native 0.38.0 and can't upgrade now, so some of the proposed solutions here don't work. For those in the similar state, perhaps this will help:

To get past this problem I did the following:

1) Get v1.6.1 of RSKImageCropper (https://github.com/ruslanskorb/RSKImageCropper/releases/tag/1.6.1)
2) Delete RSKImageCropper.framework from my project
3) Drop new RSKImageCropper.framework into the top of my project (copy files)
4) Open node_modules/react-native-image-crop-picker/ios and replace RSKImageCropper folder with new one from download above (#1)
5) In Xcode, Add back in the embedded binary for RSKImageCropper
6) Clean and build.

This did it for me. My react-native-image-crop-picker is at 0.11.2 for now. I can't take RN >0.38.0 without some significant changes I'm not ready yet to make (don't get me started on the whole breaking changes bit...)

thanks @the-mace , I'm on react native 0.39.2 and have similar issue. your instructions helps.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cwRichardKim picture cwRichardKim  路  3Comments

aterribili picture aterribili  路  3Comments

co-de picture co-de  路  3Comments

Martian2Lee picture Martian2Lee  路  3Comments

victorwpbastos picture victorwpbastos  路  3Comments