当前位置:网站首页>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
边栏推荐
- 杰理之RTC 时钟开发【篇】
- [2022 national tournament simulation] polygon - computational geometry, binary answer, multiplication
- 凌云出海记 | 易点天下&华为云:推动中国电商企业品牌全球化
- Error: could not find a version that satisfies the requirement xxxxx (from versions: none) solutions
- Mmdetection3d loads millimeter wave radar data
- Andrews - multimedia programming
- AWS learning notes (I)
- Shell 编程基础
- Redis introduction complete tutorial: replication principle
- tensorboard的使用
猜你喜欢

如何分析粉丝兴趣?

Babbitt | metauniverse daily must read: is IP authorization the way to break the circle of NFT? What are the difficulties? How should holder choose the cooperation platform

Change your posture to do operation and maintenance! GOPs 2022 Shenzhen station highlights first!

Oauth2协议中如何对accessToken进行校验

What are the characteristics of the operation and maintenance management system

【Socket】①Socket技术概述

Redis getting started complete tutorial: replication configuration

How to design interface test cases? Teach you a few tips to draft easily

The whole process of knowledge map construction
![[secretly kill little partner pytorch20 days] - [Day1] - [example of structured data modeling process]](/img/f0/79e7915ba3ef32aa21c4a1d5f486bd.jpg)
[secretly kill little partner pytorch20 days] - [Day1] - [example of structured data modeling process]
随机推荐
INS/GPS组合导航类型简介
Wireshark installation
Redis入门完整教程:客户端常见异常
Nuggets quantification: obtain data through the history method, and use the same proportional compound weight factor as Sina Finance and snowball. Different from flush
The panel floating with the mouse in unity can adapt to the size of text content
Redis introduction complete tutorial: client case analysis
Matlb| economic scheduling with energy storage, opportunity constraints and robust optimization
Statistics of radar data in nuscenes data set
IDEA重启后无法创建Servlet文件的解决方案
Analysis of USB network card sending and receiving data
How does C language (string) delete a specified character in a string?
oracle连接池长时间不使用连接失效问题
What management points should be paid attention to when implementing MES management system
Redis getting started complete tutorial: client management
AWS learning notes (I)
Redis入门完整教程:复制配置
MySQL提升大量数据查询效率的优化神器
mos管實現主副電源自動切換電路,並且“零”壓降,靜態電流20uA
Redis入门完整教程:问题定位与优化
从控制理论的角度谈数据分析