
IOS-Xcode运行报错
小程cyc
这个作者很懒,什么都没留下…
展开
-
While reading /Users/xxx img.png pngcrush caught libpng error: Not a PNG file..
While reading /Users/xxx img.png pngcrush caught libpng error: Not a PNG file..原创 2014-11-25 17:59:45 · 4582 阅读 · 1 评论 -
Thread1:EXC_BAD_ACCESS错误
是因为试图访问一个不存在的对象的时候会报此错误,一般情况下是过度release,对象被提早释放了。原创 2014-12-02 15:29:49 · 8127 阅读 · 0 评论 -
DerivedData/xxx-fxhqtzymbwegttddoznsqpakmlvp/Build/Products/Debug-iphonesimulator/xxx.app/xxx
运行程序报错ld: file not found: ~/Library/Developer/Xcode/DerivedData/xxx-fxhqtzymbwegttddoznsqpakmlvp/Build/Products/Debug-iphonesimulator/xxx.app/xxxclang: error: linker command failed with exit cod原创 2015-01-05 10:22:15 · 7941 阅读 · 1 评论 -
iOS报错libc++abi.dylib handler threw exception
在相应位置加断点不打印相应日志,可以用下面这几行代码打印异常日志@try{ //相关异常代码 } @catch(NSException *exception) { NSLog(@"exception:%@", exception); } @finally {原创 2015-02-27 15:17:48 · 840 阅读 · 0 评论 -
-[__NSCFString absoluteURL]:
请求图片时容易出现此错误UIButton *avatarButton = [UIButton buttonWithType:UIButtonTypeCustom];[avatarButton setImageWithURL:[NSString stringWithFormat:@"http:xxx.png"]];//错误[avatarButton setImageWithURL:[NS原创 2015-02-27 15:48:42 · 1985 阅读 · 0 评论 -
No known instance method for selector 'respondsToSelector:'
声明的协议protocol没有从NSObject继承如://MyClass.h:@class MyClass;@Protocol MyClassDelegate- (void)myClass:(MyClass *)sender willDoSomething:(BOOL)animated;@end@interface MyClass : UIViewContro原创 2015-05-13 14:49:57 · 5532 阅读 · 0 评论 -
ios多工程依赖
做程序员稍微久点就会发现每次做新项目的时候拖自己的工具代码很费劲,写个简单的教程来管理工具类,并在新工程里引用。//导入准备工作1.建立一个Framework & Library->Cocoa Touch Static Library 取名A,并在A里新建一个类用来测试2.建立一个demo工程B3.把工程A整个文件夹复制到B工程文件夹里,位置随便选(只要你会添加头文转载 2015-05-16 12:42:37 · 2441 阅读 · 1 评论