Xcode編譯出現_OBJC_CLASS_$_XX 問題,好比出現的問題以下:ui
"_OBJC_CLASS_$_NJKWebViewProgress", referenced from: objc-class-ref in WebViewController.o objc-class-ref in ArticleViewController.o "_OBJC_CLASS_$_NJKWebViewProgressView", referenced from: objc-class-ref in WebViewController.o objc-class-ref in ArticleViewController.o "_OBJC_CLASS_$_TSMessage", referenced from: objc-class-ref in AppDelegate.o objc-class-ref in CommonListViewController.o objc-class-ref in MixListViewController.o
解決的方案:code
打開項目targets-->build phases-->get
1.檢查Compile Sources中是否有缺乏.m文件。it
2.檢查link binary with libraries中是否缺乏依賴庫,或者根本忘了導入庫。編譯
3.有些第三方庫可能須要導入libz.dylib,在上述link binary with libraries中。class
4.檢查所導入庫文件路徑的下文件是否存在,並檢查targets-->building setting下search paths下相應路徑是否正確。List