Flutter application run into iOS simulator facing below issue

Running “flutter pub get” in Vcomics…
Launching lib/main.dart on iPhone 11 in debug mode…
Running pod install…
Running Xcode build…
Xcode build done. 7.3s
Failed to build iOS app
Could not build the application for the simulator.
Error launching application on iPhone 11.
Error output from Xcode build:

2020-09-08 17:40:28.042 xcodebuild[40344:1222726] 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.
2020-09-08 17:40:28.042 xcodebuild[40344:1222726] warning: The file reference for “Objective-C/TOCropViewController/Views/TOCropOverlayView.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.
2020-09-08 17:40:28.042 xcodebuild[40344:1222726] warning: The file reference for “Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.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.
2020-09-08 17:40:28.042 xcodebuild[40344:1222726] warning: The file reference for “Objective-C/TOCropViewController/Views/TOCropScrollView.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.
2020-09-08 17:40:28.042 xcodebuild[40344:1222726] warning: The file reference for “Objective-C/TOCropViewController/Views/TOCropToolbar.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.
2020-09-08 17:40:28.042 xcodebuild[40344:1222726] warning: The file reference for “Objective-C/TOCropViewController/Views/TOCropView.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.
2020-09-08 17:40:28.042 xcodebuild[40344:1222726] warning: The file reference for “Objective-C/TOCropViewController/TOCropViewController.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.
2020-09-08 17:40:28.042 xcodebuild[40344:1222726] warning: The file reference for “Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.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.
** BUILD FAILED **

Xcode’s output:

1 error generated.
note: Using new build system
note: Planning build
note: Constructing build description
warning: Skipping duplicate build file in Copy Headers build phase: /Users/vidyayugmac10/Documents/Ravindra_Babu/vcomic_block_workspace/Vcomics/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOActivityCroppedImageProvider.h (in target ‘TOCropViewController’ from project ‘Pods’)
warning: Skipping duplicate build file in Copy Headers build phase: /Users/vidyayugmac10/Documents/Ravindra_Babu/vcomic_block_workspace/Vcomics/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropOverlayView.h (in target ‘TOCropViewController’ from project ‘Pods’)
warning: Skipping duplicate build file in Copy Headers build phase: /Users/vidyayugmac10/Documents/Ravindra_Babu/vcomic_block_workspace/Vcomics/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOCroppedImageAttributes.h (in target ‘TOCropViewController’ from project ‘Pods’)
warning: Skipping duplicate build file in Copy Headers build phase: /Users/vidyayugmac10/Documents/Ravindra_Babu/vcomic_block_workspace/Vcomics/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropScrollView.h (in target ‘TOCropViewController’ from project ‘Pods’)
warning: Skipping duplicate build file in Copy Headers build phase: /Users/vidyayugmac10/Documents/Ravindra_Babu/vcomic_block_workspace/Vcomics/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropToolbar.h (in target ‘TOCropViewController’ from project ‘Pods’)
warning: Skipping duplicate build file in Copy Headers build phase: /Users/vidyayugmac10/Documents/Ravindra_Babu/vcomic_block_workspace/Vcomics/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Views/TOCropView.h (in target ‘TOCropViewController’ from project ‘Pods’)
warning: Skipping duplicate build file in Copy Headers build phase: /Users/vidyayugmac10/Documents/Ravindra_Babu/vcomic_block_workspace/Vcomics/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/TOCropViewController.h (in target ‘TOCropViewController’ from project ‘Pods’)
warning: Skipping duplicate build file in Copy Headers build phase: /Users/vidyayugmac10/Documents/Ravindra_Babu/vcomic_block_workspace/Vcomics/ios/Pods/TOCropViewController/Objective-C/TOCropViewController/Models/TOCropViewControllerTransitioning.h (in target ‘TOCropViewController’ from project ‘Pods’)

open terminal > goto ios folder location > do pod install
try opening the app on xcode and run

1 Like

Thanks for reply
@R_Laheri already i fixed

1 Like

please how did you fix it

I tried two approaches second one i work for me

1st Approach
steps:- open terminal->choose your project-> cd ios
you need to remove inside ios below files
rm -rf Pods
rm -rf Podfile
return back to your project and run the flutter clean

2nd Way approach
Beacuse why i faced the above problem because of upgarding flutter sdk
show i faced compatable issues then what i did is i freshly downloaded sdk after doing it’s worked for me