跳至主要内容

博文

目前显示的是 三月, 2020的博文

AFNetworking: ITMS-90809: Deprecated API Usage - UIWebView APIs

原文链接 A scheme by use pre_install hook to remove the files related about UIWebView, the only things you need do is copy the following code to your Podfile. pre_install do |installer| puts 'pre_install begin....' dir_af = File.join(installer.sandbox.pod_dir('AFNetworking'), 'UIKit+AFNetworking') Dir.foreach(dir_af) {|x| real_path = File.join(dir_af, x) if (!File.directory?(real_path) && File.exists?(real_path)) if((x.start_with?('UIWebView') || x == 'UIKit+AFNetworking.h')) File.delete(real_path) puts 'delete:'+ x end end } puts 'end pre_install.' end

Cocoapods 1.8: CDN: trunk Repo update failed

参考链接: https://github.com/CocoaPods/CocoaPods/issues/9303 解决方法1: pod repo list  查看源列表 pod repo remove trunk  移除trunk源 只有移除掉问题才解决!!! 2019.11.07更 怕有人不懂,特意写了一篇文章 具体操作看下这篇文章 里面说的很详细了 https://www.jianshu.com/p/bf1cbe49cb5d 解决方法2: Podfile add source 'https://github.com/CocoaPods/Specs.git' remove trunk pod repo remove trunk 解决方法3: 我现在的解决方式是在  host  文件里面 加了 199.232.4.133 raw.githubusercontent.com 就不会出现 CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/a/a/4/Masonry/0.0.2/Masonry.podspec.json, error: execution expired 这个了,不知道能不能解决你的问题