2012-03-24 60 views
1

我在與我的應用程序的問題。我收到7個蘋果Mach-O鏈接器錯誤。這裏是錯誤:用於建築未定義符號ARMV

Undefined symbols for architecture armv7: 
    "_OBJC_IVAR_$_SideSwipeTableViewController.sideSwipeCell", referenced from: 
    -[ViewController touchUpInsideAction:] in ViewController.o 
    "_OBJC_CLASS_$_SideSwipeTableViewController", referenced from: 
    _OBJC_CLASS_$_ViewController in ViewController.o 
    "_OBJC_METACLASS_$_SideSwipeTableViewController", referenced from: 
    _OBJC_METACLASS_$_ViewController in ViewController.o 
    "_OBJC_IVAR_$_SideSwipeTableViewController.tableView", referenced from: 
    -[ViewController viewDidLoad] in ViewController.o 
    -[ViewController touchUpInsideAction:] in ViewController.o 
    "_OBJC_CLASS_$_SideSwipeTableViewCell", referenced from: 
    objc-class-ref in ViewController.o 
    "_OBJC_IVAR_$_SideSwipeTableViewController.sideSwipeView", referenced from: 
    -[ViewController setupSideSwipeView] in ViewController.o 
ld: symbol(s) not found for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

這一直驅使我瘋了,我想得到這個修復。我一直在尋找,雖然谷歌,Bing和StackOverflow的,雖然我的確發現了一些問題「爲架構的ARMv7未定義的符號」,沒有人幫助我。

我使用的Xcode 4.3.1。我正在運行OS X Lion 10.7.3。我正在使用運行iOS 5.1的iPhone測試應用程序。

任何人都可以幫我嗎?我會很感激! :)

回答

11

這些鏈接錯誤意味着類調用SideSwipeTableViewController和SideSwipeTableViewCell沒有編制,但在你的代碼的其他地方使用。如果這些類不是靜態庫的一部分,請確保它們在項目的編譯源構建階段。如果它們是靜態庫的一部分,這意味着您鏈接的庫的版本可能是爲不同的體系結構構建的。

+0

謝謝!幫了很多。非常感謝! :) – chrisjr 2012-03-24 03:46:51

+0

如果我理解正確的話,我已經建立了我的庫的目標的集合,以構建活性拱只= NO。 (也許我錯誤地設置了這個,我是新來的。)但是我仍然得到錯誤。據我所知,我已經完成了所有正確的步驟。你能用一個要檢查的東西的子彈清單更新嗎?謝謝! – Olie 2014-07-03 22:31:45