![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
错误调试
feeling127
这个作者很懒,什么都没留下…
展开
-
Command /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/llv
这是在真机调试中出现的bug ,费了好多劲,终于将bug消除。在此过程中非常感谢我iPhone开发群里面的几个兄弟 北京_合子,北京_长空,Oran,以及苏州—老猫 给我指点,让我没有浪费太多的时间解决了错误。今将调试方法贴出,以此报谢 几个友善,乐于助人的兄弟。ld: warning: directory not found for option '-L/Users/cindy/De原创 2013-01-11 15:16:04 · 14099 阅读 · 1 评论 -
iOS断点调试(xcode )
调试程序时,断点是必不可少的工具,下面介绍一下断点具体使用1.普通断点如下图所示,在xcode编辑框左侧点击 就出现一个断点,右击出现 “编辑断点”等选项。如下图中代码所示,添加断点后,每次for循环都会在NSLog 40行停住。如果想在某一条件下 断点才生效,则添加条件选项,右击断点,选择编辑断点,如下图所示,只有当item 为“thr原创 2013-11-25 11:12:14 · 1612 阅读 · 0 评论 -
关于iOS6应用中第三方类库不支持armv7s的问题解决
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /file/location for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)原创 2013-02-01 17:12:17 · 2498 阅读 · 0 评论 -
file not found
有没有遇到过这种情况,已经把文件add到项目中,也在View中#import了,但是还是会报 ... file not found 这样的错误?解决办法:在添加Classes这个文件夹时我选择的是"create folder references for any added folders" 添加后的文件夹是蓝色的,改成用原创 2013-05-08 11:02:16 · 2985 阅读 · 0 评论 -
error: failed to attach to process ID 0
error: failed to attach to process ID 0出现此错误的现象:项目run build successes 但是IOS模拟器不能运行 项目自动stop。解决方法一: IOS模拟器 还原内容和设置如果方法一不能够解决问题那么,查看一下你的项目里面是否有 Resources 等之类关键词命名的文件或文件夹。我项目不能运行的原因就是因为在项目里面包含原创 2013-04-25 10:50:46 · 2486 阅读 · 0 评论 -
No such of file or dictionary......
靠,这样的错误折磨的我都想把mac给摔了。再出现这样的错误 ,首先要看看你的项目里面是不是缺哪一个包,其次就是该导入的框架是否导入。没有别的原因。。。原创 2013-03-27 17:20:47 · 5958 阅读 · 1 评论 -
libxml/tree.h file not found
今天调试一个程序,用了友盟的统计工具出现这么一个错误 libxml/tree.h file not found 解决办法: 设置Header Search Paths 为 /usr/include/libxml2 如图:原创 2013-03-27 15:38:53 · 2242 阅读 · 0 评论 -
Undefined symbols for architecture i386 错误
Undefined symbols for architecture i386: "_OBJC_CLASS_$_CLLocationManager", referenced from: objc-class-ref in HotelQueryViewController.old: symbol(s) not found for architecture i386原创 2013-03-20 21:44:18 · 1901 阅读 · 0 评论 -
-[UIDevice uniqueGlobalDeviceIdentifier]: unrecognized selector sent to instance 0x6c29000
-[UIDevice uniqueGlobalDeviceIdentifier]: unrecognized selector sent to instance 0x6c29000 BaiduMapDemo[716:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:原创 2013-03-21 11:10:58 · 3180 阅读 · 0 评论 -
xcode build error ...
当误从project中去除 一些 FrameWork 时候,便会出现 “....referenced from:” 之类的错误, 如当误删 Foundation.Framework 时候,将会出现“.objc_class_name_NSObject”,reference from:.objc_class_name_HelloWorldAppDelegate in H原创 2013-04-01 16:05:35 · 1586 阅读 · 0 评论 -
iOS调试问题集锦
1、使用instruments调试性能时,报错target failed to run:remote exception encountered:failed to get pid xxx解决方法:把release的证书调成development时的证书,Xcode4使用profile功能时,会自动切换到release模式。可参考:http://stackoverflow.co原创 2013-02-06 17:38:02 · 1689 阅读 · 0 评论 -
xcode 编译问题
1. invalid deployment target for -stdlib=libc++ (requires iOS 5.0 or later)解决办法:这个是由于文件编译不支持可以将target-> Apple LLVM complier 4.1-Language ->C++ standard Library 改成Compiler Default.2.Und原创 2013-02-06 17:36:07 · 1711 阅读 · 0 评论 -
IOS内存泄露
在project-setting中找到 “Run Static Analyzer” 键,然后把值修改为“YES”.这样在编码的时候,xcode就可以自动为我们检查内存泄露了.泄露1.Logic error :The left operand of "==" is a grabage value 原因 "=="左侧的变量为初始化2.Potential le原创 2013-02-05 15:16:43 · 2448 阅读 · 0 评论 -
XCode编译iphone时出现的问题:The identity 'iPhone Developer' doesn't match any valid certificate/private key
解决办法: 点击项目名称---》Build Settings---》All ,Combined ---》Code Signing ---》Code Signing Entitlements ---》Code Signing Identity ---》Debug ---》Any IOS SDK 设置为:Don't Code Sign 即可。原创 2013-01-18 17:13:15 · 2793 阅读 · 0 评论 -
Command/Develeoper/Platforms/iphoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed
Command/Develeoper/Platforms/iphoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1原因如下:(1)查看是不是文件互相引用,比如a中有improt b。h b中又有#improt a。h(2)重复定义了两个相同的文件,就是整个工程中有两个a。h原创 2013-02-01 17:19:41 · 1444 阅读 · 0 评论 -
-[UIViewController _loadViewFromNibNamed:bundle:]
2012-08-17 10:22:22.848 text_viewchange[879:f803] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded th原创 2013-02-01 17:18:21 · 16351 阅读 · 1 评论 -
synthesis-of-weak-property-only-allowed-in-arc-or-gc-mode ARC属性
synthesis-of-weak-property-only-allowed-in-arc-or-gc-mode ARC属性错误提示: 1:确认你的项目是 ARC环境;2:如果 ARC下出现上面的提示,那找到 项目里面 weak 的属性,改为 assign 参考:http://stackoverflow.com/questions/1893原创 2014-01-24 16:28:15 · 2078 阅读 · 0 评论