Simulator OK Device compile Error Undefined symbols for architecture armv7s

221 Views Asked by At

Xcode5.0 + IOS7.0

I am able to run my app in ios simulator, but when comes to device, it run into compile error.

`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

I have search a lot in stackflow, here is a good topic about Undefined symbols for architecture armv7 but none is work for me

 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:I can run Hello world demo on iphone5c.

1

There are 1 best solutions below

1
On

You didn't include the Reachablity probably into your target.

Check it here:

enter image description here