首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >链接错误Ipad

链接错误Ipad
EN

Stack Overflow用户
提问于 2011-04-05 05:18:23
回答 2查看 1.7K关注 0票数 1

当我试图编译我的应用程序时,我遇到了这个错误。谁能告诉我这个错误是什么?

谢谢

代码语言:javascript
复制
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
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-04-05 19:55:34

错误:

代码语言:javascript
复制
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
EN

Stack Overflow用户

发布于 2011-04-05 06:00:28

当我试图将GData XML包含到我的一个应用程序中时,同样的错误也将我推到了疯狂的边缘。问题的原因是我在我的应用程序pch文件中包含了GDataXMLNode.h -参见我的SO question

如果您正在尝试相同的方法(使用GData XML),这也可能是您的解决方案。如果没有,尝试注释掉你的pch文件中的东西--老实说,我仍然不知道这个错误背后的确切逻辑,欢迎任何解释……

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5544470

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档