在運(yùn)行程序時(shí)出現(xiàn)以下錯(cuò)誤,關(guān)鍵詞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.重新編譯