Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PBXCp error ..... is longer than filepath buffer size (1025)

Tags:

ios

Has anybody ever faced this issue: PBXCp error ..... is longer than filepath buffer size (1025)

like image 938
cency Avatar asked Feb 25 '16 05:02

cency


3 Answers

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.

like image 124
veeresh kumbar Avatar answered Nov 18 '22 18:11

veeresh kumbar


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.

like image 16
Ahmed Mohammedali Avatar answered Nov 18 '22 19:11

Ahmed Mohammedali


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.

like image 2
Joe Avatar answered Nov 18 '22 18:11

Joe