【问题标题】:Undefined symbols for architecture i386: "_OBJC_CLASS_$_SDZInfo" (sudzc)架构 i386 的未定义符号:“_OBJC_CLASS_$_SDZInfo”(sudzc)
【发布时间】:2012-11-16 11:44:44
【问题描述】:

我正在使用 XCode 4.1.1 开发应用程序

我从http://sudzc.com/ 添加了用于使用网络服务的库。

当我编译应用程序时,它给出了这个错误:

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 和 Deployment 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"

提前感谢您的帮助。

【问题讨论】:

    标签: xcode sudzc i386


    【解决方案1】:

    错误是说丢失的文件是包含SDZInfoSoapFault 的文件。您提到的两个 .m 文件必须已经在项目中,因为它们被列为需要这些东西的地方。

    【讨论】:

      猜你喜欢
      • 2013-03-23
      • 2012-02-15
      • 1970-01-01
      • 1970-01-01
      • 2023-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多