linker command failed with exit code 1 (use -v to see invocation)
引用c++(有.cpp文件)編譯的.a 文件出現(xiàn)了錯(cuò)誤,原因是Xcode無(wú)法識(shí)別c++編譯類型。解決方法是1.改變build Setting 中compile source as 的 according to file type(按文件類型)---> object-C++。2. 在Xcode中創(chuàng)建或改變一個(gè) .m 文件為 .mm 文件,Xcode可以識(shí)別c++. 原文連接