我想在我的项目中通过 CocoaPods 使用 PromiseKit。projsect 中的最小部署目标设置为 9.0。
问题
我正在尝试摆脱的 PromiseKit 中收到弃用警告。警告出现在UIActionSheet+Promise.swift
, UIAlertView+Promise.swift
, 中NSURLConnection+Promise.swift
。
我做过的事情:
- 我已设置
Pods > Building settings > Deprecated Function
为否
添加
inhibit_all_warnings!
到 Podfile 并重新安装 pod播客文件
使用_frameworks!禁止所有警告!
pod "PromiseKit", "~> 3.0", :inhibit_warnings => true
问题
我做错了什么?还有另一种方法吗?