在 Swift 中使用 CocoaPods 时忽略编译警告
Ignore compilation warnings when using CocoaPods in Swift
首先:
inhibit_all_warnings!
不工作 for Pods written in Swift, like Alamofire
.它仅适用于其他Pods,写在Objective-C。如何阻止所有警告?
更新:
这已在 CocoaPods 版本 1.0.0.beta.1
中修复。
没有修复它的解决方法。这是 CocoaPods 的一个已知问题,他们正在解决这个问题,Alamofire 说:https://github.com/Alamofire/Alamofire/issues/937
修复后,您只需重新安装 gem:
即可更新 CocoaPods
$ [sudo] gem install cocoapods
首先:
inhibit_all_warnings!
不工作 for Pods written in Swift, like Alamofire
.它仅适用于其他Pods,写在Objective-C。如何阻止所有警告?
更新:
这已在 CocoaPods 版本 1.0.0.beta.1
中修复。
没有修复它的解决方法。这是 CocoaPods 的一个已知问题,他们正在解决这个问题,Alamofire 说:https://github.com/Alamofire/Alamofire/issues/937 修复后,您只需重新安装 gem:
即可更新 CocoaPods$ [sudo] gem install cocoapods