2011-04-04 78 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文件的东西 - 说实话,我还是不知道这个错误背后的确切逻辑,任何解释......欢迎