ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.16k stars 1.56k forks source link

warning: indicates a malformed project #1359

Open juststartmeteor opened 4 years ago

juststartmeteor commented 4 years ago

Version

Tell us which versions you are using:

Platform

Tell us to which platform this issue is related

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.

jiyunkeji commented 4 years ago

The same problem

ajaxjiang96 commented 4 years ago

Exact the same behaviour here. Except I'm working on react-native@0.63.2

Somnus007 commented 4 years ago

Same problem here.

ajaxjiang96 commented 4 years ago

Exact the same behaviour here. Except I'm working on react-native@0.63.2

Had to roll back to @0.30.0

mrousavy commented 4 years ago

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

predescu commented 4 years ago

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.

djimenezlegend commented 4 years ago

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

djimenezlegend commented 4 years ago

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!

mrousavy commented 4 years ago

@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