unrecognized selector sent to instance的一类解决办法

简介: unrecognized selector sent to instance的一类解决办法

今天重构代码,运行时反复报错:



unrecognized selector sent to instance

仔细检查代码,完全无问题。


后来发现,就h中的声明和实现差异导致的:



- (void) sendMqttMsg:(NSString *) qid msgId:(int)msgId msgData:(NSMutableDictionary *) data;


- (void) sendMqttMsg:(NSString *) qid msgId:(int)msgId    data:(NSMutableDictionary *) data


{


//


}


统一后问题解决。



注意最后一个参数的说明的差异。

希望能对大家有所帮助。

目录
相关文章
|
iOS开发
IOS Pods Failed to connect to www.gstatic.com port 443: Operation timed out
IOS Pods Failed to connect to www.gstatic.com port 443: Operation timed out
128 0
|
9月前
|
JavaScript
Property “selectedItemIndex“ was accessed during render but is not defined on instance. 报错解决
Property “selectedItemIndex“ was accessed during render but is not defined on instance. 报错解决
731 0
|
Docker 容器
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
2875 0
解决failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status co
|
NoSQL Redis
Redis 之 WRONGTYPE Operation against a key holding the wrong kind of value【bug解决】
Redis 之 WRONGTYPE Operation against a key holding the wrong kind of value【bug解决】
10337 0
|
5月前
|
JSON 前端开发 Java
template might not exist or might not be accessible by any of the configured Template Resolvers
template might not exist or might not be accessible by any of the configured Template Resolvers
190 0
|
6月前
|
开发工具 git
Stylelint——Unexpected unknown pseudo-class selector ":deep" selector-pseudo-class-no-unknown
新项目制定规范接入了stylelint,并通过husky在git提交时去触发检测修复,使用`:deep()`的时候却发现了报错;
218 1
|
8月前
|
NoSQL Redis
蓝易云 - redis报错WRONGTYPE Operation against a key holding the wrong kind of value
解决这个问题的方法是检查你的代码,确保你对每个键使用的命令与该键的类型匹配。你可以使用 `TYPE`命令来确定一个键的类型。例如,`TYPE mykey`将返回 `mykey`的类型。
175 3
|
9月前
|
开发工具
App Store Connect Operation Error ERROR ITMS-90087: “Unsupported Architectures
App Store Connect Operation Error ERROR ITMS-90087: “Unsupported Architectures
76 1
|
9月前
Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicit
Error:Execution failed for task ':app:javaPreCompileDebug'. > Annotation processors must be explicit
103 0