ios - How can I create an instance of this class? -


i'm using phonegap develop plug-in heart rate monitor, has following header file in sdk:

@class hrmonitor;  @interface hrmonitor : nsobject <nsstreamdelegate>{  }  -(id) init: (id) _delegate; -(void)startup; -(void)shutdown; 

i listed method i'm having trouble with.

i have class hrmplugin.m, inside class, whenever want create instance:

hrmonitor *hrm = [[hrmonitor alloc] init:self] 

it report error:

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 architecture i386:   "_objc_class_$_hrmonitor", referenced from:       objc-class-ref in hrmplugin-9e97fde3bf57274e.o ld: symbol(s) not found architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation)  

i'm new ios , don't know do. way of creating new instance correct?
how can debug code?

the reason of error is:

the library use not support ios simulator.

for 2nd error, please make sure have valid apple developer account developer certificate , provisioning profile ( team provisioning profile okay ).


Comments