模拟器OK设备编译错误架构armv7s的未定义符号

时间:2013-12-18 14:24:12

标签: 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。

1 个答案:

答案 0 :(得分:2)

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

在此处查看:

enter image description here