
iOS错误录
Jolie_Yang
所贵乎枯淡者,谓其外枯中膏,似淡而实美
展开
-
iOS [<NSObject 0x170204110> setValue:forUndefineKey:]: this class is not key value coding-compliant
5th,Jan,2016报错:uncaught exception 'NSUnknownKeyException',reason: '[ setValue:forUndefineKey:]: this class is not key value coding-compliant for the key name.今天在做一个聊天界面小demo,需要从xib文件加载UIView.一开始是新原创 2016-01-05 20:54:55 · 2201 阅读 · 0 评论 -
Error Domain=com.alamofire.error.serialization.response Code=-1016 "
在使用AFNetworking连接时,报”Error Domain=com.alamofire.error.serialization.response Code=-1016 “错误。 网上找资料说是因为AFNetworking无法解析text/html格式,即XML格式的文本。 两种解决方案: 1. 后端修改:是后端的文本改成”application/json”,”text/json”等非”原创 2016-07-19 09:03:28 · 1377 阅读 · 0 评论 -
iOS问题列表
前言一些诡异的问题,目前毫无思路,先放着可能哪一天以后的自己就可以解答。也欢迎交流指点下。问题列表stringByReplacingOccurrencesOfString去除空格失败30th,August,2016 为什么打印stripSpaceText存在空格,而将newText赋给textStr后,再进行去除就可以了。 UITextRange *selectedRange = [text原创 2016-08-30 10:19:46 · 500 阅读 · 0 评论 -
iOS--加载cell
12rd,Jan,20161. 默认加载cell2.通过xib加载1) 有自定义的cell时,不要使用 [tableView dequeueReusableCellWithIdentifier: forIndexPath], 使用[tableView dequeueReusableCellWithIdentifier]。2原创 2016-01-12 14:12:35 · 594 阅读 · 0 评论 -
报错"Receiver 'EntitlementEntity' type for instance message is a forward declaration"
26th,May,2016报错信息:解决方法:添加头文件#import "EntitlementEntity.h"分析:在.h文件中有@class EntitlementEntity;因而在.m文件中有访问到该对象具体的属性,所以应引入头文件.原创 2016-05-26 14:21:15 · 1623 阅读 · 0 评论 -
does not contain bitcode. You must rebuild it with bitcode enabled
29th,Feb,2016昨天升级了Xcode7,公司的项目都没有问题,但毕设的项目在编译的过程中出现了问题。报错:“does not contain bitcode. You must rebuild it with bitcode enabled”解决方案:Build Setting 中设置Enable Bitcode为NO.错误2:报错:“Undefined sy原创 2016-02-29 21:56:02 · 1157 阅读 · 0 评论 -
iOS报错--"duplicate interface definition for class"
6th,April,2016错误描述编译时提醒“duplicate interface definition for class” duplicate重复错误分析该问题涉及到重复引用,交叉编译的问题解决方法使用#import引入原创 2016-04-06 11:21:03 · 5369 阅读 · 0 评论 -
iOS运行时显示--Could not find Developer Disk Image
5th,April,2016错误描述真机测试时运行提示:“Could not find Developer Disk Image”错误分析:测试机前两天奔着"Night shifts" 升级到了9.3,在“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSuppor原创 2016-04-05 11:34:24 · 446 阅读 · 0 评论 -
iOS报错--Init methods must return a type related to the receiver type
3rd,April,2016错误描述在ViewController.m文件中声明了一个名为"initCoreData”的方法获取CoreData的上下文。 单数报错"Init methods must return a type related to the receiver type" ,截图如下所示:错误分析我声明的方法中返回对象为NSManagedObjectCo原创 2016-04-03 10:50:02 · 5697 阅读 · 0 评论 -
iOS读取plist文件存为NSArray但为nil
5th,Jan,20161.一开始使用的是以下方式读取plist文件中数据,但返回为nil: [NSArrayarrayWithContentsOfFile:[[NSBundlemainBundle] pathForResource:@"messages"ofType:@"plist"]];接着以为是因为类型错误,应为NSMutableArray,故尝试,依旧原创 2016-01-05 23:05:22 · 2793 阅读 · 0 评论 -
iOS报错篇
将平时遇到的一些报错问题整理成篇.14th,March,2017process launch failed: failed to get the task for process分析: 证书问题。 解决方法: Build Setting -> Code Signing将证书从iOS Distribution改成Developer类型 参考资料: iOS 报错:process launch fai原创 2017-03-14 10:54:56 · 623 阅读 · 0 评论