处理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 ...
随机推荐
- Ubuntu杂记——Ubuntu下Eclipse安装Maven问题
转:在线安装maven插件问题:Cannot complete the install because one or more required items could not be found. 使 ...
- iOS OC语言: Block底层实现原理
先来简单介绍一下BlockBlock是什么?苹果推荐的类型,效率高,在运行中保存代码.用来封装和保存代码,有点像函数,Block可以在任何时候执行. Block和函数的相似性:(1)可以保存代码(2) ...
- 关于BFC不会被浮动元素遮盖的一些解释
简介 在清除浮动一文中提到BFC不会被浮动元素遮盖,并没有详细探究表现行为.规范中指出,在同一个BFC内,作为子元素的BFC的border-box不应该覆盖同为子元素的浮动元素的margin-box. ...
- CSS3实现图形曲线阴形和翘边阴影
首先,来看看完成之后的效果图: 实现原理 ①曲线阴影实现: 多个阴影重叠,就是正常阴影+曲线阴影 正常情况下,有个矩形有正常的阴影,作为主投影,这时候再定义一个有一定弧度圆角的圆角矩形,然后放在正常矩 ...
- Oracle巡检脚本:ORAWatcher.sh
Oracle巡检脚本:ORAWatcher.sh #!/usr/bin/ksh echo "" echo "ORAWatcher Version:1.0.1" ...
- 原创:微信小程序入口猜想?
昨天看到一篇文章:是有一个人逆向了微信源码,从中发现了很多关于小程序的未公开内容,然后发布了出来,不过很快作者就删掉了文章,而我也没保留,只是隐约留下来一点点印象,就是作者推测了很多个入口:作者删掉的 ...
- 4.Java网络编程之TCP/UDP
常见传输协议: UDP , TCP UDP协议: 特点: 1.将数据及源和目的封装成数据包中,不需要建立连接 2.每个数据包的大小限制在64K内 ...
- solr教程
转载请注明出处:http://www.cnblogs.com/zhuxiaojie/p/5764680.html 本教程基于solr5.5 前言 至于为什么要用solr5.5,因为最新的6.10,没有 ...
- 一个基于mysql构建的队列表
通常大家都会使用redis作为应用的任务队列表,redis的List结构,在一段进行任务的插入,在另一端进行任务的提取. 任务的插入 $redis->lPush("key:task:l ...
- MySQL数据迁移到SQL Server
数据迁移的工具有很多,基本SSMA团队已经考虑到其他数据库到SQL Server迁移的需求了,所以已经开发了相关的迁移工具来支持. 此博客主要介绍MySQL到SQL Server数据迁移的工具:SQL ...