Hi,
has anyone encountered this problem? or could perhaps offer a solution?
Many Thanks.
Tell us which versions you are using:
Tell us to which platform this issue is related
Build passes. (does so for android)
Build fails.
Note: cocoapods is being used to link dependencies, post install instructions have been double checked.
..../node_modules/react-native-image-crop-picker/ios/src/ImageCropPicker.m
:
320
:
35
: error: property 'sortOrder' not found on object of type 'QBImagePickerController *'
imagePickerController.sortOrder = [self.options objectForKey:@"sortOrder"];
Hey,
I think you need to include this in your Podfile:
pod 'QBImagePickerController', :path => '../node_modules/react-native-image-crop-picker/ios/QBImagePicker'
It seems like your code is not using the RN-image-crop-picker provided QBImagePickerController, thus you get the error of the missing functionality (which is only present at the local library)
Same issue!
This is because the version of QBImagePicker on cocoapods is different from the embeded one. It's
been modified in this commit https://github.com/ivpusic/react-native-image-crop-picker/pull/1090/files in version 0.25.1 (don't know why someone met this issue 2 weeks ago?)
cc @ivpusic @migue1s
@sunnylqm so is there any solution ? thanks
@KingAmo I suggest using 0.25.0 as a workaround
@sunnylqm thanks a lot, i'll have a try. by the way, really fast reply...
@sunnylqm same issue facing in 0.25.1

@vigneshwaranoptisol so what? everyone use 0.25.1 with cocoapods would face this issue
Im not able to verify/test this but could it be that pod install is installing the original questbeat/QBImagePickerController rather than the modified one embedded in this project because in react-native-image-picker's podspec it links, as a dependency, to QBImagePicker? if so would copying node_modules/React-native-Image-Crop-Picker/ios/QBImagePicker/QBImagePicker directory into ios/Pods/QBImagePickerController and overwrite the existing QBImagePicker directory after running pod install fix it?
@sunnylqm @Eddiwar It is looks like strange for me
I have already used very older version of 0.20.3 for long time.
have updated to 0.25.1 using
npm install 鈥攕ave [email protected]
Then completely removed iOS/Pods folder
Then done pod install.
Even though QBImagepicker library in my pods folder does not updated.
But with in the node modules folder it have updated QBImagepicker code
copying node_modules/React-native-Image-Crop-Picker/ios/QBImagePicker/QBImagePicker directory into ios/Pods/QBImagePickerController is worked for me.
@vigneshwaranoptisol What's strange?
The QBImagepicker in podfile linked to a remote version which does not have sortOrder, while the 0.25.1 version modified a local copy which was not refereneced in podfile. Isnt the issue clear enough?
Hi all, the first reply by Nadav2051 provides a solution that is permanent. There is also the copy paste route but is only a temporary work around and is reset by pod install
@Eddiwar Why closing before it's fixed?
@sunnylqm sorry first time posting an issue I thought a temporary fix was sufficient but youre right it should stay up until a fix is merged.
sortOrder commit is reverted because the feature was added to the local copy of QBImagePicker, which is something I would like to avoid
@ivpusic Sorry not extremely familiar with everything thats going on, but how does the future look for features that need to be implemented in QBImagePicker such as sort order?
currently I have no plans of adding this feature myself, but if somebody from the community is having a time to add it, but without modifying local copy of QBImagePicker, I would gladly accept PR.
sortOrder is available in version 0.27.0
@ivpusic the same error occurs in version 0.27.0
@ivpusic I am getting the same error with v0.27.0 as well
you need to add this https://github.com/ivpusic/react-native-image-crop-picker#using-local-qbimagepicker
@ivpusic Why not add to subspec https://guides.cocoapods.org/syntax/podspec.html#subspec
Most helpful comment
@ivpusic the same error occurs in version 0.27.0