极光IM监听方法一写就报错
我只要在项目里一写这个监听方法
func onReceive(_ event: JMSGUserLoginStatusChangeEvent!) {
print("收到监听:\(event)")
}
就会在编译时报错
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_JMSGUserLoginStatusChangeEvent", referenced from:
objc-class-ref in AppDelegate+Jmsg.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
其它监听方法写了就没事,怎么这个关键的监听方法一写就编译报错?
用的cocoapods导入的,来回删了,导入试了好几次了还是不行
有没有pod里导入的库有冲突了?
pod 'Masonry'
pod 'Alamofire'
pod 'SwiftyJSON'
pod 'Kingfisher'
pod 'AliyunPlayer_iOS/AliyunVodPlayerSDK'
pod 'RealmSwift'
pod 'JPush'
pod 'JMessage'