I have been stuck on this bug for quite a while now so any help would be appreciated. When I try to build my app I keep getting the following build error:
Multiple commands produce '/Users/my_user_name/Library/Developer/Xcode/DerivedData/Expense_Tracker_Final-aujeprcwgnjmizeaueitvhpegrzf/Build/Products/Debug-iphonesimulator/Expense Tracker Final.app':
I have tried solution that have been recommended on other stack overflow questions such as deleting certain files from the [CP] Copy Pods Resources, but nothing seems to be working. Could someone please help me I'm really lost.
In my case, this happens because there are 2 files that have the same name. So the solution is just to rename one of the files' name
在Build Phase > [CP] Copy Pods Resources下的脚本中似乎有重复的代码删除重复并重新运行项目。
This error is coming from the IOS directory because there are some duplicate files, in my case the project was building on Android only and throwing this error for IOS.
I fixed this by first backing up the IOS directory, then deleted the IOS directory then ran this command:
flutter create -i swift. --project-name="your project Name"
NOTE: check pubspec.yaml for your project name
after running the command do cd. then do flutter run
you have to go to build phase to make the change it worked for me, after that you delete all the copied files
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.