博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS中去除 Warning警告
阅读量:6985 次
发布时间:2019-06-27

本文共 1533 字,大约阅读时间需要 5 分钟。

过期方法的 warning 消除

#pragma clang diagnostic push#pragma clang diagnostic ignored "警告标识的描述"  // 例如 -Wdeprecated-declarations//    过期的方法      //#pragma clang diagnostic pop//  for example #pragma clang diagnostic push#pragma clang diagnostic ignored "-Wdeprecated-declarations"        return [self.text sizeWithFont:self.font constrainedToSize:CGSizeMake(CGFLOAT_MAX, height) lineBreakMode:self.lineBreakMode];#pragma clang diagnostic pop//警告标识的描述 的查找方法 step 1) find "show the issue navigator"step 2) find the issue step 3) reveal in log step 4) read message such as UILabel+Extension.m:48:27: warning: 'sizeWithFont:constrainedToSize:lineBreakMode:' is deprecated: first deprecated in iOS 7.0 - Use -boundingRectWithSize:options:attributes:context:   [-Wdeprecated-declarations] // 描述标识 复制代码

architecture x86_64

warning: no rule to process file 'README.md' of type net.daringfireball.markdown for architecture x86_64.

we can resolve that things with simply following step:-Step 1) Select Project NavigatorStep 2) Select your projectStep 3) Select your targetStep 4) Select Build PhasesStep 5) Move files which we don't want the compiler to process from Compile Sources to Copy Bundle Resources复制代码

解决方式2

Select the project targetSelect the Build PhasesExpand the Compile SourceRemove the Header file (Reachability.h)note : for removing the Reachability.h file from Compile Source, first select the file and then press the - buttonIf you need the header, then make sure that it is added to the "Headers" list below "Compile Sources".复制代码

转载地址:http://piqpl.baihongyu.com/

你可能感兴趣的文章
使用ulimit设置文件最大打开数
查看>>
[Step By Step]SAP HANA PAL指数回归预测分析Exponential Regression编程实例EXPREGRESSION(模型)...
查看>>
VMware Data Recovery备份恢复vmware虚拟机
查看>>
solr多core的处理
查看>>
解决DeferredResult 使用 @ResponseBody 注解返回中文乱码
查看>>
C# WinForm开发系列 - TextBox
查看>>
28岁少帅统领旷视南京研究院,LAMDA魏秀参专访
查看>>
java文件传输
查看>>
Xen虚拟机迁移技术
查看>>
安装Sql Server 2005出现“性能监视器计数器要求”错误解决方法。
查看>>
[.NET领域驱动设计实战系列]专题八:DDD案例:网上书店分布式消息队列和分布式缓存的实现...
查看>>
Icomparer和Icomparable集合排序
查看>>
【poi xlsx报错】使用POI创建xlsx无法打开
查看>>
UNIX环境高级编程笔记之文件I/O
查看>>
DIV+CSS规范命名
查看>>
我的2013 Q.E.D
查看>>
2017 Multi-University Training Contest - Team 9 1002&&HDU 6162 Ch’s gift【树链部分+线段树】...
查看>>
4.5. Rspamd
查看>>
ArcMap中的名称冲突问题
查看>>
(转) 一张图解AlphaGo原理及弱点
查看>>