ld: file too small (length=0) file '/Users/AshutoshP/Library/Developer/Xcode/DerivedData/TheBouqs-arlmufhxskabmgbuixdzfozlrsph/Build/Intermediates/TheBouqs.build/Debug-iphonesimulator/TheBouqs.build/Objects-normal/x86_64/HomeVC.o' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
Asked
Active
Viewed 1,774 times
0

swiftBoy
- 35,607
- 26
- 136
- 135

Ashutosh Pandey
- 127
- 1
- 4
-
try by clean and run your project – Ravi Sep 22 '16 at 10:57
-
Pl. check my answer.. It also explain how to clean DerivedData – Ketan P Sep 22 '16 at 11:17
-
@Ashutosh are get chance to check answer. – Ketan P Sep 23 '16 at 05:46
3 Answers
2
I got same issue but I was able to solve it with following steps :
- Just Clear The Derived Data Contents From Xcode.
- Quit and Restart XCode.
For Clear Derived Data you can use following steps or another SO link.
Step 1 : Click on Xcode > Preferences...
Step 2 : Select Location
Step 3 : Delete Derived Data from its Folder...
hope it will help you...
0
Usually that kind of error comes from a previous build not being cleaned up. You should clean your build folder :
In Xcode, top menu bar select Product
Hold the All key and see Clean change to Clean Build Folder
I do that before all of my build and became a reflex.

ElectrikSheep
- 39
- 2