Ashutosh Pandey
Ashutosh Pandey

Reputation: 145

I am getting the following error when i am trying t o build my project

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)

Upvotes: -1

Views: 2051

Answers (3)

Ketan P
Ketan P

Reputation: 4379

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

Upvotes: 2

ElectrikSheep
ElectrikSheep

Reputation: 39

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.

Upvotes: 0

vamsi
vamsi

Reputation: 602

quit your xcode delete your derived data and build again

Upvotes: 0

Related Questions