当前位置:网站首页>unrecognized selector sent to instance 0x10b34e810
unrecognized selector sent to instance 0x10b34e810
2022-07-06 19:36:00 【全栈程序员站长】
大家好,又见面了,我是全栈君
一个错误:
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[NSURLError isEqualToString:]: unrecognized selector sent to instance 0x10b34e810’ *** First throw call stack:
(lldb) po 0x10b34e810 Error Domain=NSURLErrorDomain Code=-1004 “Could not connect to the server.” UserInfo=0x10a582670 {NSUnderlyingError=0x10a664e90 “Could not connect to the server.”, NSErrorFailingURLStringKey= , NSLocalizedDescription=Could not connect to the server.}
打印了 0x10b34e810对象,怀疑 NSError *error 强制转成string类型的不成功
在这里挂掉了。
。。
(lldb) po (NSString*)error Error Domain=NSURLErrorDomain Code=-1004 “Could not connect to the server.” UserInfo=0x10a5223a0 {NSUnderlyingError=0x10b181140 “Could not connect to the server.”, NSErrorFailingURLStringKey=, NSLocalizedDescription=Could not connect to the server.}
总结:数值基本类型的能够转,nsobject类型的不能够强制转(一般普通的基本类型能够强制转化。
int,float能够转成string 。
对象类型的是不是不能够转化啊。。
比方nsurl的不能够转成string。。nserror也不能够转成string)多么主要的常识丫,还总是忘了。
版权声明:本文博主原创文章,博客,未经同意不得转载。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/116774.html原文链接:https://javaforall.cn
边栏推荐
- Another million qubits! Israel optical quantum start-up company completed $15million financing
- Redis introduction complete tutorial: client case analysis
- Planning and design of double click hot standby layer 2 network based on ENSP firewall
- 新标杆!智慧化社会治理
- Niuke programming problem -- double pointer of 101 must be brushed
- A complete tutorial for getting started with redis: RDB persistence
- Kubernetes源码分析(二)----资源Resource
- Error in fasterxml tostringserializerbase
- Redis getting started complete tutorial: client management
- Redis入门完整教程:AOF持久化
猜你喜欢
Unity uses maskablegraphic to draw a line with an arrow
上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
Another million qubits! Israel optical quantum start-up company completed $15million financing
从零安装Redis
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
How to analyze fans' interests?
又一百万量子比特!以色列光量子初创公司完成1500万美元融资
wireshark安装
How-PIL-to-Tensor
知识图谱构建全流程
随机推荐
MySQL - common functions - string functions
Unity custom webgl packaging template
QT常见概念-1
Redis introduction complete tutorial: client case analysis
Redis入门完整教程:复制配置
上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
Redis入门完整教程:客户端常见异常
ERROR: Could not find a version that satisfies the requirement xxxxx (from versions: none)解决办法
你知道电子招标最突出的5大好处有哪些吗?
杰理之RTC 时钟开发【篇】
How to verify accesstoken in oauth2 protocol
INS/GPS组合导航类型简介
uniapp的表单验证
商城商品的知识图谱构建
[2022 national tournament simulation] polygon - computational geometry, binary answer, multiplication
sshd[12282]: fatal: matching cipher is not supported: [email protected] [preauth]
Andrews - multimedia programming
Error in fasterxml tostringserializerbase
Redis getting started complete tutorial: replication configuration