请问一下, 在daemon 里面注册服务,总是编译不过去。错误代码,
Undefined symbols for architecture armv7s:
“OBJC_CLASS$_CPDistributedMessagingCenter”, referenced from:
objc-class-ref in main.mm.2877bce5.o
ld: symbol(s) not found for architecture armv7s
Compiling main.mm…
main.mm:62:46: error: expected unqualified-id
class CPDistributedMessagingCenter_class = objc_getClass("CPDistributedM…
^
main.mm:63:13: error: receiver type ‘CPDistributedMessagingCenter_class’ is not an
Objective-C class
id c = [CPDistributedMessagingCenter_class preformSelector:@selector(cen…
^
main.mm:66:8: error: instance method
‘-performSelector:withObject:withObject:withObject:’ not found (return type
defaults to ‘id’) [-Werror,-Wobjc-method-access]
…performSelector:@selector(registerForMessageName:target:selector:) withObject:@“myMessageName” withObject:“self” withObject…