运行程序出现file too small (length=0)错误解决办法

在运行程序时出现以下错误,关键词file too small (length=0)

ld: file too small (length=0) file '/Users/Allister/Library/Developer/Xcode/DerivedData/Haze_Meter-dkjjcmjehyitmcbhkcbujnsrhwpu/Build/Intermediates/Haze Meter.build/Debug-iphonesimulator/Haze Meter.build/Objects-normal/x86_64/ViewController.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决办法:

1.选择xcode菜单的Product下的Clean,或者组合键是Cmd+Shift+K,清除一遍
2.重新编译

推荐阅读更多精彩内容