0

大家好,我正在构建一个应用程序来创建一个简单的表格视图,顶部有一个搜索栏来搜索表格的元素。我遵循了一个教程,没有发现编码错误,但是在构建时,它总是无法显示以下消息:

Ld /Users/gouyoun/Library/Developer/Xcode/DerivedData/ERCDictionnary-atjolczeormaykcscwvnhlxdcnvk/Build/Products/Debug-iphonesimulator/ERCDictionnary.app/ERCDictionnary normal i386
cd /Users/gouyoun/Desktop/ERCDictionnary/ERCDictionnary
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Volumes/Xcode/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Volumes/Xcode/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/gouyoun/Library/Developer/Xcode/DerivedData/ERCDictionnary-atjolczeormaykcscwvnhlxdcnvk/Build/Products/Debug-iphonesimulator -F/Users/gouyoun/Library/Developer/Xcode/DerivedData/ERCDictionnary-atjolczeormaykcscwvnhlxdcnvk/Build/Products/Debug-iphonesimulator -filelist /Users/gouyoun/Library/Developer/Xcode/DerivedData/ERCDictionnary-atjolczeormaykcscwvnhlxdcnvk/Build/Intermediates/ERCDictionnary.build/Debug-iphonesimulator/ERCDictionnary.build/Objects-normal/i386/ERCDictionnary.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/gouyoun/Library/Developer/Xcode/DerivedData/ERCDictionnary-atjolczeormaykcscwvnhlxdcnvk/Build/Products/Debug-iphonesimulator/ERCDictionnary.app/ERCDictionnary

架构 i386 的未定义符号:“_OBJC_CLASS_$_OverlayViewController”,引用自:tableView.o 中的 objc-class-ref ld:找不到架构 i386 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v查看调用)

 "_OBJC_CLASS_$_OverlayViewController", referenced from:
      objc-class-ref in tableView.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我是OBjective C的新手,有什么想法吗?

4

3 回答 3

0

它完成了,它只需要删除文件并稍后重新添加它们,它就像一个魅力

于 2012-07-09T12:19:42.310 回答
0

我有完全相同的错误。发生这种情况是因为我打开了 2 个 xCode 项目,将一个类从一个项目拖放到另一个项目。我检查了“复制到项目”和新项目文件夹中的文件。但是每次都崩溃。

我删除了这些类并将它们导入到项目中,然后它工作了......所以在使用 Drag'n'Drop 时要小心

于 2012-11-13T16:25:32.357 回答
0

您的 tableView 类是指一个OverlayViewController不在您的项目中的类。

于 2012-07-05T08:51:35.470 回答