2017-04-19 96 views
0
ld: warning: ignoring file /Users/CNS/Downloads/Demo Source Code 2/iOS/TYCommonLic_Demo/TYCommonLic_Demo/libTYCommonLib.a, missing required architecture x86_64 in file /Users/CNS/Downloads/Demo Source Code 2/iOS/TYCommonLic_Demo/TYCommonLic_Demo/libTYCommonLib.a (2 slices) 
Undefined symbols for architecture x86_64: 

    "_OBJC_CLASS_$_SalesSlipModel", referenced from: 
     objc-class-ref in ViewController.o 
    "_OBJC_CLASS_$_TYSwiperController", referenced from: 
     objc-class-ref in ViewController.o 
ld: symbol(s) not found for architecture x86_64 

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

獲取此錯誤。請幫助如何解決它?體系結構x86_64的未定義符號:對於libTYCommonLib.a

+0

顯示來自ViewController.m的代碼以便更好地理解。 –

+0

實際上這個代碼是2-3歲,我試圖運行在xcode 8.2 ..這個庫是不兼容新的xcode –

+0

你在設備 –

回答

0

您需要連接M檔

終於找到了答案。在您的目標設置中,找到構建階段並導航到編譯源。一旦那裏只是廣告.m文件是錯誤的列表。

+0

.m文件已經加入編譯源 –

+0

清理你的項目和派生數據.. – KKRocks

+0

清理了很多次,但沒有幫助 –

相關問題