2011-04-04 104 views
1

嗨我有這個錯誤,當我正在編譯我的應用程序。任何人都可以讓我知道這個錯誤是什麼?鏈接錯誤Ipad

感謝

Ld /Users/DineshParchuri/Library/Developer/Xcode/DerivedData/Graph_Theory-bxoahqkbiemabledhmfyzkqpotjr/Build/Products/Debug-iphonesimulator/Graph_Theory.app/Graph_Theory normal i386 
    cd "/Users/DineshParchuri/Desktop/3:28:11/Graph_Theory" 
    setenv MACOSX_DEPLOYMENT_TARGET 10.6 
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -L/Users/DineshParchuri/Library/Developer/Xcode/DerivedData/Graph_Theory-bxoahqkbiemabledhmfyzkqpotjr/Build/Products/Debug-iphonesimulator -F/Users/DineshParchuri/Library/Developer/Xcode/DerivedData/Graph_Theory-bxoahqkbiemabledhmfyzkqpotjr/Build/Products/Debug-iphonesimulator -filelist /Users/DineshParchuri/Library/Developer/Xcode/DerivedData/Graph_Theory-bxoahqkbiemabledhmfyzkqpotjr/Build/Intermediates/Graph_Theory.build/Debug-iphonesimulator/Graph_Theory.build/Objects-normal/i386/Graph_Theory.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics -o /Users/DineshParchuri/Library/Developer/Xcode/DerivedData/Graph_Theory-bxoahqkbiemabledhmfyzkqpotjr/Build/Products/Debug-iphonesimulator/Graph_Theory.app/Graph_Theory 

Undefined symbols for architecture i386: 
    "_OBJC_CLASS_$_MyTableCell", referenced from: 
     objc-class-ref in Graph_TheoryViewController.o 
ld: symbol(s) not found for architecture i386 
collect2: ld returned 1 exit status 

回答

1

錯誤:

Undefined symbols for architecture i386: 
    "_OBJC_CLASS_$_MyTableCell", referenced from: 
     objc-class-ref in Graph_TheoryViewController.o 
ld: symbol(s) not found for architecture i386 
collect2: ld returned 1 exit status 

指定名爲MyTableCell的Objective-C類沒有(完全)定義,並且在Graph_TheoryViewController.m中調用這個未定義的類

檢查Graph_TheoryViewController.m文件,看看你是否實現了MyTableCell(假設)類中定義的名稱在其中一個包含的標題中定義。

如果這個類是在別處聲明的,你可能會在適當的.m文件中丟失方法實現(很可能是MyTableCell.m)

-1

這非常相同的錯誤開車送我去瘋狂的邊緣,當我試圖包括的GData XML到我的應用程序之一。問題的原因是我在我的應用程序pch文件中包含了GDataXMLNode.h - 請參閱我的SO question

如果您嘗試相同(使用GData XML),這可能也是您的解決方案。如果沒有,想試試註釋掉的PCH文件的東西 - 說實話,我還是不知道這個錯誤背後的確切邏輯,任何解釋......歡迎