XCodeでのビルド時にld: file too small (length=0)が出た時の対応

ビルド中にStopを押した後、(変なタイミングでビルドが中断されたためか) 次のようなエラーが出てビルドができなくなりました。

ld: file too small (length=0) file '/Users/develop35/Library/Developer/Xcode/DerivedData/Message-fttaeycsosmtgvapvfojcpanqgbs/Build/Intermediates/Message.build/Debug-iphoneos/Message.build/Objects-normal/armv7/SocketTypes.o' for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

メニューバーのProductからCleanを実行してから、ビルドし直すとエラーが出なくなりました

参考:http://stackoverflow.com/questions/14034048/xcode-linker-error-file-too-small-for-architecture-x86-64