'Multiple commands produce error in Xcode 13
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':
- Target 'Expense Tracker Final' has create directory command with output '/Users/my_user_name/Library/Developer/Xcode/DerivedData/Expense_Tracker_Final-aujeprcwgnjmizeaueitvhpegrzf/Build/Products/Debug-iphonesimulator/Expense Tracker Final.app'
- That command depends on command in Target 'Expense Tracker Final': script phase “[CP] Copy Pods Resources”
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.
Solution 1:[1]
Select Targets -> BuildPhases.
There you saw Copy Bundle Resources. Just remove the duplicate file that is creating an error by selecting that file and clicking on the minus icon and if info.plist is present there just remove it also.
Solution 2:[2]
Looks like there's a duplicate code in your script under Build Phase > [CP] Copy Pods Resources Remove the duplicate and re-run the project.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | singhabhi13 |

