我已经在 Xcode 7 中通过 cocoapods 安装了 Bolts,现在当我尝试构建应用程序时出现 2 个错误。
第一个错误是
'CFURLCreateStringByAddingPercentEscapes' is deprecated: first deprecated in iOS 9.0 - Use [NSString stringByAddingPercentEncodingWithAllowedCharacters:] instead, which always uses the recommended UTF-8 encoding, and which encodes for a specific URL component or subcomponent (since each URL component or subcomponent has different rules for what characters are valid).
第二个错误是
'sendAsynchronousRequest:queue:completionHandler:' is deprecated: first deprecated in iOS 9.0 - Use [NSURLSession dataTaskWithRequest:completionHandler:] (see NSURLSession.h
错误在两个不同的文件中,第一个在BFAppLinkNavigation.m中,第二个在BFWebViewAppLinkResolver.m中。
这是复制品。