LiteAVSDK / Player_iOS

Super player for iOS...
https://trtc.io/
1.11k stars 226 forks source link

'NSInvalidArgumentException', reason: '-[AFHTTPSessionManager invalidateSessionCancelingTasks:]: unrecognized selector #274

Closed 66543210 closed 2 years ago

66543210 commented 2 years ago

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AFHTTPSessionManager invalidateSessionCancelingTasks:]: unrecognized selector sent to instance 0x28374ab20'

在退出播放是发送了如下异常,在可以搜索到的代码中,AFNetwork 4.0.1该方法签名为- (void)invalidateSessionCancelingTasks:(BOOL)cancelPendingTasks resetSession:(BOOL)resetSession;,但在AFNetwork3.2.1中该方法签名为是- (void)invalidateSessionCancelingTasks:(BOOL)cancelPendingTasks;

我搜索到SuperPlayerModel时使用AFNetwork 4.0.1版本的方法,使用我猜测是否代码中有部分适配AFNetwork4.0.1未完成

Tencent-Alice commented 2 years ago

您好,根据您的问题,可以参考demo里面Other Link Flags为-ObjC尝试一下 技术问题 欢迎交流 q2562367495 注明来意