iOS之清除项目警告

作者: Daniel_Guo | 来源:发表于2016-08-02 10:26 被阅读740次

1、Automatic Preferred Max Layout Width is not available on iOS versions prior to 8.0

解决办法:Xib中选中某个Controller-》Show the file inspector -> Interfaces Builder Document -> Builds for ->ios8以上(但是做好的布局需要在ios7以上验证)

2、Storyboard:Scene is unreachable due to lack of entry points and does not have an identifier for runtime access

解决办法: 是因为在storyboard中的某个controller没有设置storyboardID的原因,给Controller添加一个storyboardID就行了

http://blog.csdn.net/freedom2028/article/details/8589375

3、类型不匹配问题

解决办法:  转换成对应的数据类型

4、Xcode不支持的配置:plain style unsupported in a Navigation Item

解决办法:在storyboard或xib中选中对应的controller->NavigationItem-》 Left/Right Bar Button Items ->选中某个Bar Button Item——》右侧Style-》Plain改为Bordered

http://stackoverflow.com/questions/10945859/plain-style-unsupported-in-a-navigation-item-warning-with-my-customized-bar-bu

5、API过期,

解决办法:替换成最新版的API

http://cocoadocs.org/docsets/AFNetworking/2.1.0/Classes/AFHTTPRequestSerializer.html

6、Storyboard:Unsupported Configuration: Prototype table cells must have reuse identifiers

解决办法:给Cell添加一个重用标识

7、Storyboard:Frame for "XXX" will be different at run time.

解决办法:这个View缺少完整的约束,添加完整的约束

http://stackoverflow.com/questions/18739572/xcode-5-layout-errors-misplaced-view-frame-for-label-will-be-different-at-runt

8、Storyboard:Ambiguous Layout: Size and vertical position are ambiguous for "Add Address View".

解决办法:缺少约束

9、Storyboard: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

10、Images.xcassets:Missing Content: The file "credit_card_light.png" for the image set "credit_card_light" does not exist.

解决办法:引用的图片不存在,添加对应的图片

11、Images.xcassets: The image set name“xxx.png”is used by multiple image sets

解决办法:可能添加多个相同名字的图片,导致模糊不清,删除重复的图片

12、Xcode:Directory not found for option“-L path"

解决办法:可能删除了某个目录,但是项目中还会搜索这个目录,

Target-》build setting->search path ->去掉没有的搜索路径

13、Xcode: APP名称.app.DSYM 有warnings

解决办法:Target-》APP-》Build settings-》Build Options-》 Debug Information Format

DWARF With dSYM File  改为 DWARF

14、代码: 某个变量定义了但是没有被使用

解决办法:最好删除

相关文章

  • iOS之清除项目警告

    1、Automatic Preferred Max Layout Width is not available o...

  • Automatic Preferred Max Layout W

    项目中出现这个警告”Automatic Preferred Max Layout Width before iOS...

  • iOS编译警告

    iOS编译警告-消除方法参数检查相关的警告 iOS编译警告-消除注释中的警告

  • iOS 项目警告处理

    去除警告的方法: 上述的代码块中,正常的代码是没有下方这些代码的。但是呢,这个方法我是已经写了,但是在项目中没有运...

  • Pod警告清除

    Pod库有时候随着版本更新也会有警告的地方.或者本身更新不及时等等. 只需在此位置加一句话, 即可消除掉Pod库的...

  • Xcode清除警告

    看见警告就烦有时候还错过了弥补的机会不能容许 一、 屏蔽指定警告 比如:新版本Xcode的Pointer is m...

  • iOS 项目警告处理(附表)

    1. Semantic Warnings(语义警告) 2. Parser Warnings(解析器警告)

  • iOS项目忽略警告方法

    由于项目加密导入了二维码的库和加密的一些库导致出现了好多警告,虽然不是处女座但也不喜欢有一个警告 全是这种警告丢失...

  • iOS项目中消除警告⚠️

    最近把项目上线以后,难得空闲时间,每每看见项目中黄色的警告,便想到集中时间来把警告一一消除。下面是我在此过程...

  • 去除Xcode中的警告⚠️强迫症!!!

    1.清除第三方的警告⚠️灰常的简单方便 1.1.在项目的Podfile文件加入“inhibit_all_warn...

网友评论

    本文标题:iOS之清除项目警告

    本文链接:https://www.haomeiwen.com/subject/xgyfsttx.html