我正在使用XCode 4.1.1开发应用程序
我从http://sudzc.com/添加了库以供使用Web服务。
编译应用程序时,会出现此错误:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_SDZInfo", referenced from:
objc-class-ref in SimpleTableViewAppDelegate.o
objc-class-ref in RootViewController.o
"_OBJC_CLASS_$_SoapFault", referenced from:
objc-class-ref in RootViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
XCode的配置是Build 2.4和Deplo yment Target 5.1。
此解决方案对我不起作用,因为添加了SimpleTableViewAppDelegate.m和RootViewController.m "You can get this type of error if your class' .m file is not listed under the "Compile Sources" step of the "Build Phases" tab of your target. Normally Xcode does this for you, but sometimes it loses the plot and you need to add the .m file manually"
提前感谢您的帮助。
答案 0 :(得分:0)
错误是说丢失的文件是包含SDZInfo
和SoapFault
的文件。您提到的两个.m文件必须已经在项目中,因为它们被列为必需的地方。