React-native-image-crop-picker: warning: indicates a malformed project

Created on 29 Jul 2020  路  9Comments  路  Source: ivpusic/react-native-image-crop-picker

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.32.2
  • react-native v0.62.2

Platform

Tell us to which platform this issue is related

  • iOS

Expected Behavior

Build without warnings.

Actual behaviour

When run react-native run-ios, there's warning: The file reference for "Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h" is a member of multiple groups ("TOCropViewController" and "TOCropViewController"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.

Most helpful comment

As a temporary fix (till TOCropViewController will be fixed) I've changed the file:
node_modules/react-native-image-crop-picker/RNImageCropPicker.podspec at line 16
from
s.dependency 'TOCropViewController'
to
s.dependency 'TOCropViewController', '2.5.3'

Than, I used the patch-package (https://github.com/ds300/patch-package) to create a patch with the changes.

All 9 comments

The same problem

Exact the same behaviour here. Except I'm working on [email protected]

Same problem here.

Exact the same behaviour here. Except I'm working on [email protected]

Had to roll back to @0.30.0

The issue is caused by the TOCropViewController pod. see: https://github.com/TimOliver/TOCropViewController/issues/424

As a temporary fix (till TOCropViewController will be fixed) I've changed the file:
node_modules/react-native-image-crop-picker/RNImageCropPicker.podspec at line 16
from
s.dependency 'TOCropViewController'
to
s.dependency 'TOCropViewController', '2.5.3'

Than, I used the patch-package (https://github.com/ds300/patch-package) to create a patch with the changes.

Same warning! :(
Screen Shot 2020-08-21 at 11 47 02

Clearing a specific pod

Inside folder ios/

pod cache clean --all # will clean all pods

Which pod cache do you want to remove?
Complete cleanup (pod reset)

rm -rf ~/Library/Caches/CocoaPods
rm -rf Pods
rm -rf ~/Library/Developer/Xcode/DerivedData/*
pod deintegrate
pod setup
pod install

Retry run-ios, todo OK!

@djimenezlegend you're almost reinstalling your whole operating system lol - all you had to do was to pin the version like @predescu mentioned and do a clean & reinstall

Was this page helpful?
0 / 5 - 0 ratings