1

我有一个较旧的 iOS 项目,并正在尝试为其添加核心动作。添加此行后出现此错误:

self.motionManager = [[CMMotionManager alloc]init];

错误:

架构 armv7 的未定义符号:

“_OBJC_CLASS_$_CMMotionManager”,引用自:

包含 i386 架构时,我也遇到了这个错误。我现在已经删除了除 arm6 之外的所有架构,但仍然出现此错误。

motionManager 在这里声明:

@property (nonatomic, retain) CMMotionManager * motionManager;

我包含了 CoreMotion 框架。

这是我的架构设置

4

0 回答 0