天天看點

iOS symbol(s) not found for architecture i386 BUG解決辦法

Undefined symbols for architecture i386:

  "_OBJC_CLASS_$_SearchResultController", 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)

原因是,找不到SearchResultController這個檔案,

解決辦法,把這個檔案添加到項目中(記住要選擇copy)

繼續閱讀