objective-c - Xcode 中的链接错误

标签 objective-c xcode linker

添加 libxml2.2.dylib 文件后出现此错误

 Linking /Users/Biranchi/Desktop/Funmovies TabBarController/build/Debug-iphonesimulator/funmovies.app/funmovies (1 error)
 in /Developer/Platforms/iphoneOS.platform/Developer/SDKs/iphoneOS3.0.sdk/lib/libobjc.A.dylib, missing required architecture i386 in file

Command /XCode3.1.4/platforms/iphoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

这个错误是由于什么导致的??

感谢所有建议。

谢谢 比兰奇

最佳答案

确保您使用正确的扩展名导入。

当我错误地写了 #import "AClass.m" 而不是 #import "AClass.h" 时,我得到了错误:-)

关于objective-c - Xcode 中的链接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2287915/

相关文章:

iphone - 是否有来自 Java 的 currentTimeMillis() 的 objective-c/iPhone 版本?

objective-c - 为什么要初始化父类

xcode - 我的 XCode 工作区在重新启动时不记得添加的项目

ios - 如何使用约束在 TableView 单元格之间创建空间?

ios - 如何获取 Xcode 配置文件中的嵌套值?

winapi - 如何在 MASM 中为一个项目编写和组合多个源文件?

ios - MKMapSnapshotOptions : Adding snapshot of Custom Pin Annotation View or UIView

iOS 框架在初始归档后无法更新

c - 错误:cannot find libary file when trying to link the library file

c++ - 编译与静态链接