处理Xcode 警告
除了代码中我们手动加入的
#Waring 标示 所产生的警告,我们都应该重视。下面是一些警告的处理。
1,方法过期,或 使用新的api 替换方案
multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:
使用替代方案:
multipartFormRequestWithMethod:URLString:parameters:constructingBodyWithBlock:error:
http://cocoadocs.org/docsets/AFNetworking/2.1.0/Classes/AFHTTPRequestSerializer.html
2,storyboard 不支持的配置 警告
storyboard: warning: Unsupported Configuration: Plain Style unsupported in a Navigation Item
原因是你导航栏上的按钮使用了不支持的 style see
修改 Plain 为Done fix waring .
3,
1)storyboard: warning: Unsupported Configuration: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:.
大意是为了在程序中动态访问Scene,需要给其设置一个Storyboard ID,所以给出了警告,解决方法:设置一个Storyboard ID即可. (基本上sb钟的所有VC都需要加,才可消除警告,这里根据自己需求。但也可检查出 sb里面无用的VC,可以干掉)。
http://blog.csdn.net/freedom2028/article/details/8589375
2)storyboard: warning: Unsupported Configuration: Prototype table cells must have reuse identifiers
必须给sb 里德cell 添加重用标示。(这里看需求。)
3)storyboard: warning: Unsupported Configuration: Segues initiated directly from view controllers must have an identifier for use with -[UIViewController performSegueWithIdentifier:sender:]
大意:segues 没有设置标识,虽然有连线。这种一般都可以废弃。
或 重新添加标示 结合代码。。
http://stackoverflow.com/questions/24087250/segue-identifier-error
4) storyboard Frame for "Table View" will be different at run time.
不全的 约束导致。谨慎修改。可能是代码中需要。
5) storyboard: warning: Ambiguous Layout: Size and vertical position are ambiguous for "Add Address View".
同上 ,默林两颗的 约束,解放方案同上。
4,storyboard: warning: Ambiguous Layout: Horizontal position is ambiguous for "Scroll View".
自动约束 位置不明确。
补全。
5,Images.xcassets
1), Images.xcassets/: warning: Missing Content: The file "credit_card_light.png" for the image set "credit_card_light" does not exist.
credit_card_light.png 不存在。
but, 明明存在。
show finder 。
文本编辑,Contents.json .对比其他正常的。
删掉上面的
"filename" : "credit_card_light.png"
fix done.
2), Images.xcassets: An iPhone Retina (4-inch) launch image for iOS 7.0 and later is required.
暂没有处理,解放方案 参考
6,Apple Mach-O Linker Warning
1)、Directory not found for option “ –L path”
尝试项目(目标) - > 构建设置 - > search path
and clear it。
http://stackoverflow.com/questions/16644982/apple-mach-o-linker-warning-directory-not-found
2)、Apple Mach-O linker Warning: lgnoring file …
http://stackoverflow.com/questions/10535678/apple-mach-o-linker-warning
3), dsymutil warning (armv7) …… .o unable to open object file
DWARF with dSYM file
设置为 DWARF
fix done. 这种办法会再 发布是报错。**********************
原文转发至:http://www.cnblogs.com/tangbinblog/p/3945518.html
处理Xcode 警告的更多相关文章
- Xcode警告忽略
Xcode中 cmd+B 之后总会出现各种各样的警告,对于一个对代码有洁癖的人,这种情况很难忍,接下来我们用些特殊手段强制消除这些警告 一.忽略源文件中的警告 使用编译器宏来操作 #pragma c ...
- Xcode 警告信息处理:Format string is not a string literal (potentially insecure)
转自:http://www.oschina.net/question/54100_33881 NSObject *obj = @"A string or other object." ...
- iOS 消除Xcode警告
- undeclared selector #pragma clang diagnostic push #pragma clang diagnostic ignored"-Wundeclar ...
- 怎么去掉Xcode工程中的某种类型的警告
XCode警告 问题描述 在我们的项目中,通常使用了大量的第三方代码,这些代码可能很复杂,我们不敢改动他们,可是作者已经停止更新了,当sdk升级或者是编译器升级后,这些遗留的代码可能会出现许许多 ...
- Objective-C if语句处理 BOOL值不为1和0的情况
BOOL ,布尔值,在Objective-C ,BOOL类型被typedef为signed char(有符号的整型),YES被#define为1,NO被#define为0. 事实上,xcode的编译器 ...
- 内存管理和@property的属性
内存管理和@property的属性 目录 对内存管理的理解 Objective C内存管理方式 内存的管理 对象的所有权和内存管理原则 合理解决内存管理带来的问题 自动释放池 @property的属性 ...
- 项目FAQ
报错: Conversion from String Literal to Char* is deprecated http://stackoverflow.com/questions/1369030 ...
- [CocoaPods]使用Pod Lib创建
入门 我们将使用pod lib create引导过程来创建整个pod .那么让我们从初始命令开始: pod lib create MyLibrary 注意:要使用您自己的pod-template,您可 ...
- The iOS Simulator deployment target is set to 6.0
XCODE警告 Showing All Messages :-1: The iOS Simulator deployment target is set to 6.0, but the range o ...
随机推荐
- (第九天)DOM事件
addEventListener 使用addEventListner()方法可以为事件目标注册事件处理程序.addEventListner()接受三个参数.第一个是要注册处理程序的事件类型,这个事件类 ...
- 解决Oracle SQL Developer无法连接远程服务器的问题
在使用Oracle SQL Developer连接远程服务器的时候,出现如下的错误 在服务器本地是可以正常连接的.这个让人想起来,跟SQL Server的一些设计有些类似,服务器估计默认只在本地监听, ...
- 1Z0-053 争议题目解析682
1Z0-053 争议题目解析682 考试科目:1Z0-053 题库版本:V13.02 题库中原题为: 682.Identify the scenarios in which the RMAN CROS ...
- Javascript常用正则表达式汇总
一.匹配数字和字符串 整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$ 只能输入数字:"^[0-9]*$". 只能输入n位的数 字:"^\d{n}$&qu ...
- JS中的this
JS中的this 最近在学习JavaScript面向对象,其中有个难点就是关于this的问题. 关于this,我们要知道的两个问题,一个是this指向什么?另一个是this可以写在哪? 关于this的 ...
- 和JavaScript家的闭包玩玩捉迷藏
JavaScript的闭包 首先声明,这是一篇面向小白的博客,不过也欢迎各位大牛批评指正,谢谢. 其实关于闭包各个论坛社区里都有很多的文章来讲它,毕竟闭包是JavaScript中一个特色,也正因为 ...
- MVC学习系列9--控制器接收从视图传递过来的参数
前面学习了,从控制器向视图传递数据,现在学习怎么从视图向控制器传递数据. 通常,我们有两种方式,来处理浏览器的请求,一个是GET方式,一个是POST方式.一般来说,直接通过在浏览器中输入URL话,请求 ...
- xml html entity 列表
Name Character Unicode code point (decimal) Standard Description quot " U+0022 (34) XML 1.0 dou ...
- 使用abp模板创建解决方案
前言 ABP官网(http://www.aspnetboilerplate.com/),本地环境 sql server EXPRESS +vs2013 通过官网生成 module zero 解决方案模 ...
- autocad2008+C#2008开发中设置自动加载dll
一.复制编译后的dlll路径,比如我的是D:\zjy\cad开发\学习\宗地图\bin\Debug\zd.dll 二.随便找个地方新建一个记事本,在记事本中写入以下内容: (command " ...