ios - 模拟器 OK 设备编译错误 Undefined symbols for architecture armv7s

标签 ios frameworks compilation armv7

Xcode5.0 + IOS7.0

我能够在 ios 模拟器中运行我的应用程序,但是当涉及到设备时,它会遇到编译错误。

`Underfined symbols for architecture armv7s:
  "_OBJC_CLASS_$_NSCalendar", referenced from:
       objc-class-ref in DateUtil.o
  "_kCFRunLoopDefaultMode", referenced from:
       -[Reachability startNotifier] in Reachability.o
       -[Reachability stopNotifier] in Reachability.o`

enter image description here

我在 stackflow 中搜索了很多,这里有一个关于 Undefined symbols for architecture armv7 的好话题 但没有一个对我有用

 The puzzle come across me is that debugging with iphone5c, 
 the framework used comes from IphoneSimulator showed on the picture, it is wired.
 I tried to add iphoneOS Framework by hand, still the compile info is IphoneSimulator.

PS:我可以在iphone5c上运行Hello world demo。

最佳答案

您没有将 Reachablity 可能包含在您的目标中。

在这里检查:

enter image description here

关于ios - 模拟器 OK 设备编译错误 Undefined symbols for architecture armv7s,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20660712/

相关文章:

java - 如何使用 javassist 编译源代码?

c - 尝试使用 C 使 LED 闪烁

ios - subview 的框架在呈现 View Controller 后更新

ios - 尝试在父 View Controller 中设置属性,但最终结果为 Null

javascript - Alpaca js可以在ReactJS中使用吗

php - 如何使用 composer 安装 Zend Framework 2 工具

带有推送通知的 IOS 框架

c - 需要澄清用于编译 C 文件的某些术语

ios - 我如何在 UIImageView 中使用一串图像名称?

ios - 关于 UIRequiredDeviceCapabilities?