2017-04-18 104 views
0

每當我運行我的項目時,我都會收到一個Apple Mach-O鏈接程序錯誤,我正嘗試使用iOS 6.0構建iPhone 6s。Apple Mach-O鏈接器錯誤 - 架構arm64的未定義符號

的架構arm64未定義的符號:

"boost::gregorian::greg_month::as_short_string() const", referenced from: 
     boost::date_time::month_formatter<boost::gregorian::greg_month, boost::date_time::iso_format<char>, char>::format_month(boost::gregorian::greg_month const&, std::__1::basic_ostream<char, std::__1::char_traits<char> >&) in libSHP.a(Timer.o) 

ld: symbol(s) not found for architecture arm64 

clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我使用的Xcode 8.1版本

+0

嘗試使用CMD + Shift + k清理項目。然後再試一次。 – ankit

+0

@ankit不工作,我甚至嘗試刪除派生數據並再次構建項目,但它不起作用 –

+0

它可能有幫助:http://stackoverflow.com/questions/19213782/undefined-symbols-for-architecture-arm64 – ankit

回答

0

如果您架構有效的架構都沒事,你可以檢查你是否有添加$(inherited)其他鏈接器標誌如下。

相關問題