Undefined symbols for architecture i386:
"_OBJC_CLASS_$_MBProgressHUD", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
這里的錯誤是因為你的在building phases中沒有引用相關(guān)的頭文件,因此,只需要在building phase中檢查是否有對應(yīng)的.h .m 文件.