解決OBJC_CLASS_$_MBProgressHUD無法引用的問題

weixin_34321977發表於2015-04-13

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中沒有引用相關的標頭檔案,因此,只需要在building phase中檢查是否有對應的.h .m 檔案.

相關文章