处理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 ...
随机推荐
- 详解 ML2 Core Plugin(II) - 每天5分钟玩转 OpenStack(72)
上一节我们讨论了 ML2 Plugin 解决的问题,本节将继续研究 ML2 的架构. ML2 对二层网络进行抽象和建模,引入了 type driver 和 mechansim driver. 这两类 ...
- 数据可视化-EChart2.0使用总结2
接上一篇博客,这篇博客主要讨论EChart里面的散点图.气泡图和雷达图. 4.散点图-Scatter Chart 适合场景:三维数据集,但是只有两个维度需要比较.比较的是X轴和Y轴的数据,第三个数 ...
- c# 我所理解的 值类型 and 引用类型
一直以来对于值类型和引用类型都只是一个模糊的概念,趁最近有空深入理解了下. 先说说值类型,在msdn上是这样介绍值类型的. 意思就是值类型直接包含值. 变量引用的位置就是值所在内存中实际存储的位置,所 ...
- c/c++ 函数、常量、指针和数组的关系梳理
压力才有动力,15年中旬就要准备实习,学习复习学习复习学习复习学习复习……无限循环中,好记性不如烂笔头……从数组开始,为主干. c 的array由一系列的类型相同的元素构成,数组声明包括数组元素个数和 ...
- 响应式web布局中iframe的自适应
困境 在响应式布局中,我们应该小心对待iframe元素,iframe元素的width和height属性设置了其宽度和高度,但是当包含块的宽度或高度小于iframe的宽度或高度时,会出现iframe元素 ...
- WebGIS中GeoHash编码的研究和扩展
文章版权由作者李晓晖和博客园共有,若转载请于明显处标明出处:http://www.cnblogs.com/naaoveGIS/. 1.背景 1.1普通地理编码流程 将采集的POI入库后,数据库里保存有 ...
- jquery.mobile手机网页简要
先上最终效果: 最近做了一个用手机浏览器访问的web应用,采用较流行的HTML5,为了提高开发效率节省时间决定采用现有开源框架,免去了自己做设计与兼容性. 一些比较优秀的框架:10大优秀的移动Web应 ...
- Android之圆形头像裁切
PS:今天项目测试组发现,百度地图定位的数据坐标位置是正确的,但是显示的数据是错误的.最后查来查去发现,那个商厦在百度地图上根本就没有那条数据,这让我如何显示,当初就推崇使用高德地图定位,上面的数据量 ...
- Circuit Breaker Pattern(断路器模式)
Handle faults that may take a variable amount of time to rectify when connecting to a remote service ...
- Switch to strategy
namespace RefactoringLib.SwitchToStrategy.Before { public class ClientCode { public decimal Calculat ...