![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
中国iOS开发 错误警告
南宫辞迁
单曲循环,其实听的是自己的心情。
展开
-
创建含有category的静态库,selector not recognized的解决方案
一、异常的原因在连接一个含有category的静态库的时候,往往会得到一个运行时exception “selector not recognized”。这是由于 UNIX的静态库实现、linker和Objective-C的动态结构三者之间的问题引起的。Objective-C并不为每个函数定义linker symbol,它只为每个class生成linker symbol。(objc的动态原创 2014-04-14 10:24:27 · 579 阅读 · 0 评论 -
xcode编译警告: XXX has different visibility (default) in lib.a and (hidden) in xx.o
今天把zxing的库拿来用,放工程里,一编译,出现这个警告:XXX has different visibility (default) in lib.a and (hidden) in xx.oStackFlow上如是说:去除Symbols Hidden by Default选项的对号。但是没效果- -,还是那一大堆警告。最后发现 把Symbols Hidden by D原创 2014-04-15 08:38:30 · 784 阅读 · 0 评论 -
performSelectorOnMainThread:withObject:waitUntilDone: not found in proctrol
最近写了个服务器交互类,里面有这么一段代码:...@property (nonatomic, assign) id delegate;...[self.delegate performSelectorOnMainThread:@selector(beginReceiveSOSSender) withObject:nil waitUntilDone:YES];...编译器总是弹出这原创 2014-04-15 08:45:21 · 672 阅读 · 0 评论 -
xcode编译警告:Missing sentinel in function call
Missing sentinel in function call出现这个警告是因为在调用可变参数的函数时,忘记结尾的nil。比如 array = [NSArray arrayWithObjects:@"abc", @"def", @"jik"];//这一行将产生警告arr = [NSArray arrayWithObjects:@"abc", @"def", @"jik", n原创 2014-04-15 08:41:31 · 700 阅读 · 0 评论 -
Xcode警告:Multiple build commands for output file
[WARN]Warning: Multiple build commands for output file /Developer/B/Be/build/Release-iphonesimulator/BB.app/no.pngtarget引用了名字重复的资源找到当前的target,展开之后,找到Copy Bundle Resources栏目,然后在里面找到重复名字的资源,删除不要的那个即原创 2014-04-15 08:42:28 · 3279 阅读 · 0 评论 -
强制去除xcode的编译警告
使用#pragma clang diagnostic ignored语法来强制去除xcode的编译警告,代码举例如下:#pragma clang diagnostic push#pragma clang diagnostic ignored "-Warc-bridge-casts-disallowed-in-nonarc" CGImageSourceUpdateDat原创 2014-04-14 10:20:23 · 584 阅读 · 0 评论 -
用application uploader传app时,遇到错误
Invalid result returned from the software lookup service先检查自己是否在itunesconnect中设置了app准备上传。原创 2014-04-14 10:34:13 · 1166 阅读 · 0 评论 -
Xcode4.3 Archive和发布中的错误
打包之后选择验证,出现错误:[projectname] does not contain a single–bundle application or contains multiple products. Please select another archive, or adjust your scheme to create a single–bundle application.原创 2014-04-14 10:25:45 · 664 阅读 · 0 评论