添加 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/