ios - 架构 armv 的 undefined symbol

标签 ios xcode architecture arm7

我的应用程序有问题。我收到 7 个 Apple Mach-O 链接器错误。以下是错误:

Undefined symbols for architecture armv7:
  "_OBJC_IVAR_$_SideSwipeTableViewController.sideSwipeCell", referenced from:
  -[ViewController touchUpInsideAction:] in ViewController.o
  "_OBJC_CLASS_$_SideSwipeTableViewController", referenced from:
  _OBJC_CLASS_$_ViewController in ViewController.o
  "_OBJC_METACLASS_$_SideSwipeTableViewController", referenced from:
  _OBJC_METACLASS_$_ViewController in ViewController.o
  "_OBJC_IVAR_$_SideSwipeTableViewController.tableView", referenced from:
  -[ViewController viewDidLoad] in ViewController.o
  -[ViewController touchUpInsideAction:] in ViewController.o
  "_OBJC_CLASS_$_SideSwipeTableViewCell", referenced from:
  objc-class-ref in ViewController.o
  "_OBJC_IVAR_$_SideSwipeTableViewController.sideSwipeView", referenced from:
  -[ViewController setupSideSwipeView] in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

这一直让我发疯,我想解决这个问题。我一直在查看 Google、Bing 和 StackOverflow,虽然我确实发现了一些“架构 armv7 的 undefined symbol ”问题,但它们都没有帮助我。

我正在使用 Xcode 4.3.1。我正在运行 OS X Lion 10.7.3。我正在使用运行 iOS 5.1 的 iPhone 测试该应用程序。

有人可以帮我吗?我会很感激! :)

最佳答案

这些链接器错误意味着名为 SideSwipeTableViewController 和 SideSwipeTableViewCell 的类未编译,而是在代码的其他地方使用。如果这些不是属于静态库的类,请确保它们处于项目的编译源构建阶段。如果它们是静态库的一部分,则意味着您要链接的库版本可能是为不同的体系结构构建的。

关于ios - 架构 armv 的 undefined symbol ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9848350/

相关文章:

ios - 什么是 "Scanning for working copies"

c++ - 将我的 C++ 演示放到 iPhone 上有多容易?

c# - 如何让数据访问技术(Entity Framework)脱离表现层(ASP.NET MVC)?

c# - 如何使用 Linq2Sql 构建我的服务/存储库代码!

ios - AVAudioSession 的 PlayAndRecord 类别和 AVAudioSessionModeMeasurement 与 defaultToSpeaker 选项不兼容?

ios - UIView animateWithDuration 在动画 block 之外为自动布局 View 设置动画

ios - 如何发现 2 CGPath roteted rects 是否相交?

ios - 将 UIPageViewController 与多个 View 一起使用

ios - 如何对齐 UILabel 框架底部的 UILabel 内的文本?

architecture - 多站点、多语言开放式解决方案的 Sitecore 6.4 架构的注意事项?