posted @ 2014-06-13 10:12
随笔分类 - ios 调试错误
摘要:1:Undefined symbols for architecture arm64:? 1 2 3 ...
阅读全文
摘要:No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=armv7, VA运行报错出现的原因:armv7s是应用在iPhone 5/5c/5s A6 的架构上的解决的方式:1,在Project target里“Archit...
阅读全文
posted @ 2014-05-08 17:54
摘要:看看Header Search Paths 为'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/usr/include/libxml2'看看Ba...
阅读全文
posted @ 2014-05-06 11:39
摘要:错误原因:添加第三方类库造成的linker command failed with exit code 1 (use -v to see invocation)的错误调试解决方案:1.查看第三方库是否添加正确2.查看是否有部分文件未正确导入工程。
阅读全文
posted @ 2013-04-26 10:04
摘要:1.self.name = [[NSString alloc] init];2._name = [[NSString alloc] init];self.name = @"whatif";上面的两种方式:我们多数人认为1和2中_name的应用计数都是2,因为对于1:用了"self.name="(set方法),alloc了,引用计数为2;对于2:用了alloc,又用了"self.name="(set方法),引用计数为2.其实上面的说法是错误的!!!正确的答案是:1中_name的引用计数为2,2中_name的引用计数为1。原因是set方法
阅读全文
posted @ 2013-03-15 10:23
摘要:我遇到这样一个问题:初始化一个字典,初始化的时候,给三个key-value;但是,打印字典的时候,只有第一个元素有值,后两个没有值。NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:_messageString,@"message",_photoImage,@"photo",@"cc",@"record", nil];打印dict的时候:有message,但是没有photo和record!!!最后找到了原因:因为——photoImage的
阅读全文
posted @ 2013-03-04 14:14