我正在使用PhoneGap
为心率监视器开发插件,它的 SDK 中有以下头文件:
@class HRMonitor;
@interface HRMonitor : NSObject <NSStreamDelegate>{
}
-(id) init: (id) _delegate;
-(void)startup;
-(void)shutdown;
我刚刚列出了我遇到问题的方法。
我也有一个类HRMPlugin.m
,但是在这个类中,每当我想创建一个实例时:
HRMonitor *hrm = [[HRMonitor alloc] init:self]
会报错:
ld: warning: ignoring file /Users/octref/Documents/HRM/HRMPlugin/iOS_APP_SDK_r5/libmyTrekSDK_armv7.a, missing required architecture i386 in file /Users/octref/Documents/HRM/HRMPlugin/iOS_APP_SDK_r5/libmyTrekSDK_armv7.a (2 slices)
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_HRMonitor", referenced from:
objc-class-ref in HRMPlugin-9E97FDE3BF57274E.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我是新手,iOS
不知道该怎么做。我创建新实例的方式正确吗?
如何调试我的代码?