当前位置:网站首页>unrecognized selector sent to instance 0x10b34e810
unrecognized selector sent to instance 0x10b34e810
2022-07-07 03:11:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm the king of the whole stack
A mistake :
*** 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.}
Print the 0x10b34e810 object , doubt NSError *error Forced to string Type of unsuccessful
Hang up here .
..
(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.}
summary : The basic type of value can be converted ,nsobject Type cannot be forcibly converted ( General basic types can be forcibly converted .
int,float Can turn into string .
Can object types not be converted ..
example nsurl Cannot be converted into string..nserror Nor can it be converted into string) What a major common sense , And always forget .
Copyright notice : This article is the original article of the blogger , Blog , Do not reprint without permission .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/116774.html Link to the original text :https://javaforall.cn
边栏推荐
- 杰理之开启经典蓝牙 HID 手机的显示图标为键盘设置【篇】
- Codeforces Round #264 (Div. 2) C Gargari and Bishops 【暴力】
- Change your posture to do operation and maintenance! GOPs 2022 Shenzhen station highlights first!
- 掘金量化:通过history方法获取数据,和新浪财经,雪球同用等比复权因子。不同于同花顺
- Redis入门完整教程:客户端管理
- 【2022国赛模拟】多边形——计算几何、二分答案、倍增
- Household appliance industry under the "retail is king": what is the industry consensus?
- 凌云出海记 | 易点天下&华为云:推动中国电商企业品牌全球化
- Detailed explanation of 19 dimensional integrated navigation module sinsgps in psins (initial assignment part)
- Install redis from zero
猜你喜欢
你知道电子招标最突出的5大好处有哪些吗?
商城商品的知识图谱构建
Le tube MOS réalise le circuit de commutation automatique de l'alimentation principale et de l'alimentation auxiliaire, et la chute de tension "zéro", courant statique 20ua
Form validation of uniapp
The whole process of knowledge map construction
Redis入门完整教程:客户端案例分析
首届“量子计算+金融科技应用”研讨会在京成功举办
PSINS中19维组合导航模块sinsgps详解(时间同步部分)
掘金量化:通过history方法获取数据,和新浪财经,雪球同用等比复权因子。不同于同花顺
Development of wireless communication technology, cv5200 long-distance WiFi module, UAV WiFi image transmission application
随机推荐
从 1.5 开始搭建一个微服务框架——日志追踪 traceId
Es6中Promise的使用
Kubernetes源码分析(二)----资源Resource
How-PIL-to-Tensor
Form validation of uniapp
The 8 element positioning methods of selenium that you have to know are simple and practical
上个厕所的功夫,就把定时任务的三种调度策略说得明明白白
netperf 而网络性能测量
IDEA重启后无法创建Servlet文件的解决方案
杰理之开启经典蓝牙 HID 手机的显示图标为键盘设置【篇】
QT Bluetooth: qbluetooth DeviceInfo
Left value, right value
Centerx: open centernet in the way of socialism with Chinese characteristics
A complete tutorial for getting started with redis: RDB persistence
应用程序启动速度的优化
Use of tensorboard
Software testing -- common assertions of JMeter interface testing
[socket] ① overview of socket technology
The solution of unable to create servlet file after idea restart
【安全的办公和生产力应用程序】上海道宁为您提供ONLYOFFICE下载、试用、教程