任何人都可以告诉我这个错误的含义, 这是错误日志的详细信息:
Ld build/Debug-iphonesimulator/Holiday.app/Holiday normal i386
cd /Users/Ahmed/Desktop/klazuka-Kal-b2e164c/Examples/Holiday
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.1.sdk -L/Users/Ahmed/Desktop/klazuka-Kal-b2e164c/Examples/Holiday/build/Debug-iphonesimulator -F/Users/Ahmed/Desktop/klazuka-Kal-b2e164c/Examples/Holiday/build/Debug-iphonesimulator -filelist /Users/Ahmed/Desktop/klazuka-Kal-b2e164c/Examples/Holiday/build/Holiday.build/Debug-iphonesimulator/Holiday.build/Objects-normal/i386/Holiday.LinkFileList -mmacosx-version-min=10.6 -all_load -Xlinker -objc_abi_version -Xlinker 2 -framework Foundation -framework UIKit -framework CoreGraphics /Users/Ahmed/Desktop/klazuka-Kal-b2e164c/src/build/Debug-iphoneos/libKal.a -lsqlite3 -o /Users/Ahmed/Desktop/klazuka-Kal-b2e164c/Examples/Holiday/build/Debug-iphonesimulator/Holiday.app/Holiday
ld: warning: in /Users/Ahmed/Desktop/klazuka-Kal-b2e164c/src/build/Debug-iphoneos/libKal.a, missing required architecture i386 in file
Undefined symbols:
"_OBJC_CLASS_$_KalViewController", referenced from:
objc-class-ref-to-KalViewController in HolidayAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
答案 0 :(得分:2)
这是一个链接器错误,确保将KalViewController添加到当前目标,选择Get Info并转到目标选项卡,确保勾选该框。
答案 1 :(得分:0)
在Kal项目的设置中,确保它是针对i386架构编译的。