XCode7去除警告

在旧工程用XCode7打开后,会出现很多警告。类似于.pcm:no such file for requested architechture。

解决方法是,将Debug Information Format的Debug改成DWARF,瞬间世界清净了。

在XCode7中新建工程,默认就是DWARF。




另附上解决xcode其他警告的方法:

1、directory not found for option -L..path

在Build Settings---》Framework Search Path,Library Search Path中删除找不到的路径即可。


图1


2、unexpected file type 'wrapper.plug-in' in frameworks & libraries build phase

在General->Linked Frameworks and Libraries中,是因为在framework and library中添加了其他不是lib的文件,如bundle,删除即可。


3、no rule to process file。。。

在compile source里删掉多余的文件.


4、undeclared selector警告

#pragma clang diagnostic push

#pragma clang diagnostic ignored"-Wundeclared-selector"

nativeTwitterAccountPresent =

#pragma clang diagnostic pop


5、Category is implementing a method which will also be implemented by its primary class

当category重写类已有的方法时会出现此警告。

#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wobjc-protocol-method-implementation”

#pragma clang diagnostic pop

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容