当我试图编译我的应用程序时,我遇到了这个错误。谁能告诉我这个错误是什么?
谢谢
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发布于 2011-04-05 19:55:34
错误:
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)中缺少方法实现。
发布于 2011-04-05 06:00:28
当我试图将GData XML包含到我的一个应用程序中时,同样的错误也将我推到了疯狂的边缘。问题的原因是我在我的应用程序pch文件中包含了GDataXMLNode.h -参见我的SO question。
如果您正在尝试相同的方法(使用GData XML),这也可能是您的解决方案。如果没有,尝试注释掉你的pch文件中的东西--老实说,我仍然不知道这个错误背后的确切逻辑,欢迎任何解释……
https://stackoverflow.com/questions/5544470
复制相似问题