0

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)

swiftBoy
  • 35,607
  • 26
  • 136
  • 135
Ashutosh Pandey
  • 127
  • 1
  • 4

3 Answers3

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...

Step1

Step 2 : Select Location

enter image description here

Step 3 : Delete Derived Data from its Folder...

enter image description here

hope it will help you...

Community
  • 1
  • 1
Ketan P
  • 4,259
  • 3
  • 30
  • 36
0

quit your xcode delete your derived data and build again

vamsi
  • 592
  • 1
  • 7
  • 14
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.