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`
我在 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 可能包含在您的目标中。
在这里检查:
关于ios - 模拟器 OK 设备编译错误 Undefined symbols for architecture armv7s,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20660712/