常见错误
jacker_2014
iOS爱好者
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
the file couldn't be opened because you don't have permission to view it
the file couldn't be opened because you don't have permission to view it Build Settings -> Architectures里所有的Architectures 和Valid Architectures统一改为yes.原创 2016-11-08 16:55:39 · 462 阅读 · 0 评论 -
ios8之后Xcode手动添加pch文件
转自:http://blog.youkuaiyun.com/sw_gegewu/article/details/511268031、pch简介 pch文件是一个预编译文件,在项目文件比较多的情况下,重复导入(#import “XXX.h”)同一个文件是不可避免的,虽然可以重复导入,但为了项目的简单明了,pch文件还是必要的。比如我在网络请求的时候会用到AFN,这时只需在pch文件中写上转载 2016-12-02 23:33:28 · 293 阅读 · 0 评论 -
Xcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed.
转自:http://blog.sina.com.cn/s/blog_62b5fba00101af2c.htmlXcode 工程文件打开不出来, cannot be opened because the project file cannot be parsed. svn更新代码后,打开xcode工程文件,会出现 xxx..xcodeproj cannot be opened转载 2016-11-22 11:59:45 · 323 阅读 · 0 评论 -
.xcodeproj cannot be opened because the project file cannot be parsed.Xcode工程文件打不开
转自:http://46aae4d1e2371e4aa769798941cef698.devproxy.yunshipei.com/minggeqingchun/article/details/51767012使用Git提交代码或者重新clone代码时,打开工程文件时,会报错:xx.xcodeproj cannot be opened because the project fil转载 2016-11-22 12:02:35 · 2475 阅读 · 0 评论 -
怎样激活Mac OS X操作系统的开发模式( Enable Developer Mode on this Mac?)
转自:http://blog.youkuaiyun.com/juyufeng_huazhu/article/details/50601173命令行DevToolsSecurity -enable转载 2016-11-25 09:59:31 · 2107 阅读 · 0 评论 -
[__NSCFNumber length]: unrecognized selector sent to instance
转自:http://blog.youkuaiyun.com/u010972075/article/details/43152971出现这种报错很大的原因是因为类型给错了,或许你这个数据是从json上解析后得到的,但是需要看一下这个数据是NSString还是NSNumber类型,如果是NSNumber类型的话,你又直接使用NSString类型的变量去接收他,那么肯定会报这样的错误,所以一定要注意数据的类转载 2016-11-27 16:36:20 · 368 阅读 · 0 评论 -
iOS10 Xcode8真机测试 code signing is required for product type 'Application' in SDK 'iOS 10.0'
转自:http://blog.youkuaiyun.com/h643342713/article/details/52728782在日常测试中会遇到code signing is required for product type 'xxxxx' in SDK 'iOS 10.0' ,具体如下解决方法按照以下步骤依次设置,clean再运行转载 2016-12-22 01:12:39 · 650 阅读 · 1 评论 -
内存管理机制 Thread 1:EXC_BAD_ACCESS(code=EXC_I386_GPFLT)错误
iOS5之后苹果公司引入了ARC机制,大大方便了iOS开发者对内存的管理机制。在iphone 4出世的时候为什么ios在512M的内存中可以运行很大的游戏,保持畅快流畅的状态。得益于ios非常好的内存处理机制。 在我们现在创建项目的时候,默认会直接引入ARC机制,我们可以关闭ARC机制:在输入框中输入long点击搜索按钮,如图: 接下来即可进行老版本的内存转载 2016-12-25 17:50:44 · 3528 阅读 · 0 评论 -
内存管理机制 Thread 1:EXC_BAD_ACCESS(code=EXC_I386_GPFLT)错误
转自:http://blog.youkuaiyun.com/lichang719/article/details/46619985iOS5之后苹果公司引入了ARC机制,大大方便了iOS开发者对内存的管理机制。在iphone 4出世的时候为什么ios在512M的内存中可以运行很大的游戏,保持畅快流畅的状态。得益于ios非常好的内存处理机制。 在我们现在创建项目的时候,默转载 2016-12-26 12:03:10 · 3459 阅读 · 0 评论 -
message sent to deallocated instance
此应用程序是由一个后台线程修改布局的发动机,从而导致发动机的腐败和怪异的崩溃转自:http://translate.baiducontent.com/transpage?query=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F31951704%2Fthis-application-is-modifying-the-autolayout-转载 2016-12-26 12:51:58 · 533 阅读 · 0 评论 -
Read data:the file "Info.plist" couldn't be opened because there is no such file
修改了Info.plist的实际文件位置(项目和单元测试对应不同的Info.plist),报错(null): could not read data from '/Users/xxxxx/Desktop/gsk/zhsy/zhsy/Info.plist': The file “Info.plist” couldn’t be opened because there is no such fil转载 2016-12-28 17:31:13 · 2867 阅读 · 0 评论 -
CocoaPods 导入第三方库头文件自动补齐
转自:http://blog.youkuaiyun.com/meegomeego/article/details/17567447使用了一段时间CocoaPods来管理Objective-c的类库,方便了不少。但是有一个小问题,当我在xcode输入import关键字的时候,没有自动联想补齐代码的功能,需要手工敲全了文件名,难以适应。在stackoverflow上找到了解决办法:转载 2016-12-28 18:44:42 · 486 阅读 · 0 评论 -
App Transport Security has blocked a cleartext HTTP
今天用Xcode 8创建新项目用到 URL 发送请求时,报下面的错“App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist原创 2016-12-02 23:15:31 · 853 阅读 · 0 评论 -
Implicit conversion of 'int' to 'id' is disallowed with ARC
NSMutableDictionary *dic = [typeArray objectAtIndex:1]; NSString *typeName = [dic objectForKey:@"type"]; NSMutableDictionary *infoDic = [dic objectForKey:@"dic"]; //------------------------转载 2016-11-15 21:02:38 · 7976 阅读 · 0 评论 -
关于Xcode的Other Linker Flags
转自:http://blog.youkuaiyun.com/meegomeego/article/details/19343423背景在iOS开发过程中,有时候会用到第三方的静态库(.a文件),然后导入后发现编译正常但运行时会出现selector not recognized的错误,从而导致app闪退。接着仔细阅读库文件的说明文档,你可能会在文档中发现诸如在Other Linker F转载 2016-11-02 16:31:05 · 255 阅读 · 0 评论 -
Xcode7 导入pch 文件报错
转自:http://blog.youkuaiyun.com/cyuyanenen/article/details/51865375 Xcode7 导入pch 文件报错什么是 .pch 文件? (1)pch文件是一个标准的预编译头文件( Pre-Compiled Header),这个文件会被编译存储在一个缓冲空间里并且自动有且只有一转载 2016-11-29 21:29:27 · 564 阅读 · 0 评论 -
unable to attach
重启模拟器重新运行xcode.原创 2016-11-17 14:42:21 · 733 阅读 · 0 评论 -
git不能提交代码或提交代码出现冲突或错误
git pull收到了conflict,怎么解决?本地文件=======远程pull下来的文件>>>>>>> 首先修改冲突的内容:1.单击工程.xcodeproj,打开包内容,双击打开.pbxproj,用command + f查找>>所在位置.2.手工删除>>之间的内容解决方法如下:(在命令行操作)原创 2016-11-17 17:47:34 · 4141 阅读 · 0 评论 -
use of undeclared identifier 'xxxxxxx方法名'
转自:http://www.cnblogs.com/ygm900/archive/2013/12/03/3455623.html在*.m文件中,编写一个方法,出现了 use of undeclared identifier 'xxxx方法名'。 遇到这种情况:首先要看,*.h 文件是否定义了该方法。其次,要检查一下,方法之间的{}大括号是否,是否转载 2016-11-30 11:22:16 · 25338 阅读 · 0 评论 -
Xcode no visible @interface for XXX declares…
转自:http://ask.youkuaiyun.com/questions/168990no visible @interface for XXX declares the selector XXX写了一段代码 剩下大约五个这样的错误 确认了几遍没有发现拼写错误,请问是什么地方出了问题?我这个错误是有一个方法最后的"}"没有加.转载 2016-11-30 11:24:45 · 2902 阅读 · 0 评论 -
iOS开发之 [NSNull length]:unrecognized selector sent
转自:https://my.oschina.net/u/2361492/blog/651238错误 [NSNull length]:unrecognized selector sent to instance这个错误是从字典中取出值后,没有判断取出的字符串是否为空,就对字符串进行测长度的操作.正确做法是取出字符串后,先进行判断是否为空,再测长度或其他操作判断是否转载 2016-11-30 16:22:25 · 265 阅读 · 0 评论 -
CRASH: -[NSNull length]: unrecognized selector sent to instance错误的处理办法
转自:http://blog.youkuaiyun.com/feixiang_song/article/details/41749679开发中从后台请求数据,返回如下:2014-12-05 16:44:52.535 掌麦[6984:613] getDefaultAddress: reuslt == { item = { data =转载 2016-11-30 16:24:20 · 383 阅读 · 0 评论 -
One of the two will be used. Which one is undefined
objc[37995]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFramewor原创 2016-11-18 23:04:57 · 17083 阅读 · 4 评论 -
CodeSign error: code signing is required for product type Application in SDK iOS
转自:http://blog.youkuaiyun.com/lxl20052051/article/details/18701177在真机测试的时候往往会突然出现这样一个错误,code signing is required for product type 'Application' in SDK 'iOS 7.0' ,就是说代码签名证书不对劲。解决方案,1.选择工程-转载 2016-11-19 00:32:27 · 547 阅读 · 0 评论 -
Development cannot be enabled while your device is locked.
转自:http://blog.youkuaiyun.com/u013538542/article/details/52052584问题:Development cannot be enabled while your device is locked.分析原因:由于第一次连接MAC时,在iOS设备上点击了"不信任"选项,所以XCode 8不能访问手机,所以才出现这个问题解决转载 2016-11-19 00:35:59 · 1070 阅读 · 0 评论 -
个人想法
在2年多的iOS开发职业生涯中,开发过程常会遇到比较多的问题,自己之前都没有意愿去写博客,比较喜欢看别人的博客,同时会把自己看过比较经典的文章都会记下他们的网址或者直接用pages copy下来归纳分类放在自己的电脑上;如果要自己写就会觉得写博客很麻烦,懒得去写。从今天起,我会把自己遇到的问题或者好用的框架分享给大家,请大家多多支持,谢谢。原创 2016-11-08 17:16:47 · 341 阅读 · 0 评论
分享