使用 Cocoapods 时忽略 Xcode 警告 [英] Ignore Xcode warnings when using Cocoapods

查看:43
本文介绍了使用 Cocoapods 时忽略 Xcode 警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最新的 Xcode 更新之后,我使用了很多第三方库,其中包含许多警告.(例如 Facebook SDK pod)现在所有这些警告都显示在我的 Xcode 中我想查看自己的警告或错误的地方.

I use quite a lot third party libraries which have many warnings in it, after the latest Xcode updates. (for example the Facebook SDK pod) Now all these warnings are shown in my Xcode on the place I want to see my own warnings or errors.

有什么办法可以忽略这些错误?修复它们无济于事,因为在每次pod install"之后,更改都会被丢弃.

Is there any way to ignore these errors? Fixing them won't help, since after every "pod install" the changes are discarded.

推荐答案

添加到您的 Podfile:

Add to your Podfile:

platform :ios

# ignore all warnings from all pods
inhibit_all_warnings!

# ignore warnings from a specific pod
pod 'FBSDKCoreKit', :inhibit_warnings => true

然后执行:pod install

这篇关于使用 Cocoapods 时忽略 Xcode 警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆