5
獲取此錯誤,但該庫位於與二進制庫鏈接區域,並且也包含頭文件。靜態iOS庫爲設備構建,但不是模擬器
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TestLibraryEric", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
當我爲模擬器構建而不是爲設備構建時出現此錯誤。我以相反的方式看到了這個問題,它爲模擬器而不是設備構建。僅針對活動架構的構建設置爲否有任何想法?