Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What can be the possible cause of this error in xcode PBXcp Main.storyboardc is longer than filepath buffer size (1025)?

Tags:

ios

xctest

My app target is building and running successfully on a device but I am facing this error while running the unit test target for my app. It specifically occurs during the copying face.

PBXCp /Users/MyUser/Library/Developer/Xcode/DerivedData/MyApp-fxuhlekykqtnhocptuufcbrgmspb/Build/Products/Debug-iphonesimulator/MyApp.app /Users/MyUser/Library/Developer/Xcode/DerivedData/MyApp-fxuhlekykqtnhocptuufcbrgmspb/Build/Products/Debug-iphonesimulator/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app cd /Users/MyUser/Documents/MyApp-iOSApp export PATH="/Users/MyUser/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Users/MyUser/Downloads/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -resolve-src-symlinks /Users/MyUser/Library/Developer/Xcode/DerivedData/MyApp-fxuhlekykqtnhocptuufcbrgmspb/Build/Products/Debug-iphonesimulator/MyApp.app /Users/MyUser/Library/Developer/Xcode/DerivedData/MyApp-fxuhlekykqtnhocptuufcbrgmspb/Build/Products/Debug-iphonesimulator/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks

error: '/Users/Library/Developer/Xcode/DerivedData/MyApp-fxuhlekykqtnhocptuufcbrgmspb/Build/Products/Debug-iphonesimulator/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/PlugIns/MyAppTests.xctest/Frameworks/MyApp.app/Base.lproj/Main.storyboardc/34u-hk-bLl-view-84B-ld-hA4.nib' is longer than filepath buffer size (1025).

like image 721
Nikant Avatar asked Aug 09 '16 14:08

Nikant


2 Answers

Roman's Answer is what did it for me. I had a circular dependency where appname.app was in my copy resources. I don't fully understand why removing that fixed the issue, but I figured I'd post here.

like image 96
Alfonsol Avatar answered Nov 14 '22 03:11

Alfonsol


I think that your storyboard size is too large try breaking your storyboard file into multiple storyboards using storyboard references

watch this tutorial for storyboard reference :

https://www.youtube.com/watch?v=0xxbflasmOc

Hope this be the right answer and helps you

like image 23
sherif.Khaled Avatar answered Nov 14 '22 02:11

sherif.Khaled