iOS工程的警告修复

1.Explicit call to xxxxx results in duplicate call to xxxxx(方法被重复调用)

方法名重复了,检查一下是不是跟原生SDK的方法命名一样

2.Assigning to ‘id’ from incompatible type ‘xxxxViewController *const __strong’

给xxxxViewController添加xxxxDelegate代理

@interface xxxxViewController : UIViewController

3.code will never be executed

代码不会执行

4.Implicit conversion loses integer precision: 'unsigned long' to 'CC_LONG' (aka 'unsigned int')

CC_MD5(str,strlen(str), r);,改成了CC_MD5(str,(CC_LONG)strlen(str), r);即可。

5.Incompatible pointer to integer conversion sending 'void *' to parameter of type 'NSStringEncoding' (aka 'unsigned long')

参数传递时转换错误,把传入NSStringEncoding的nil值改为0

6.The image set "xxxx" has an unassigned child.

删除Images.xcassets里边叫“xxxx”的多余图片

7.The Copy Bundle Resources build phase contains this target's Info.plist file

删除Build phases->Copy bundle Resources->info.plist->选中然后删除

8.Directory not found for option '-L/路径/xxxxSDK'

这种提示,通常是由于添加了第三方SDK,但是后来改了个名字或者去掉了SDK

删除Build Settings-->Search Paths-->Library Search Paths 和Framework Search Paths中警告的路径

iOS工程的警告修复

iOS之"performSelector may cause a leak because its selector is unknown"警告原因及其解决办法

怎么去掉Xcode工程中的某种类型的警告 Implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int32

集成支付宝报一堆warning: (arm64) /Users/scmbuild/workspace/standard-pay/.....警告问题解决办法亲测可行!

你可能感兴趣的:(iOS工程的警告修复)