Has anybody ever faced this issue:
PBXCp error ..... is longer than filepath buffer size (1025)
Yes, I got the same problem.
Inside Build Phases-> "Copy Bundle Resources" section, a folder was nested with the project folder again (it means duplicating files).
So xcode is trying to recursively build the product, so it can add the product itself recursively as a resource for itself.
Remove that product( duplicate folder ) itself from "Copy Bundle Resources" section. This method solved the problem for me.
go to xcode and select Runner.app in Products folder. Then uncheck the Target Membership checkbox. This alone resolved my issue. The way veeresh kumbar mentioned above also will solve the problem it is just manual way to do so.
Check if you have duplicated the folder inside the same folder which might have duplicated the files. This was the case for me and trashing out duplicated folder fixed the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With