【CocoaPods】常见问题记录

2021-09-28  本文已影响0人  BeethOven
image.png
1.fatal: unable to access 'https://github.com/CocoaPods/pod-template.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

去除代理

git config --global http.proxy
git config --global --unset http.proxy
2.Targeting iOS 11.0 but still getting warnings: is only available on iOS 10.0 or newer

在Podfile底部加入

# temporary fix for this issue to suppress a ton of warnings
# https://github.com/CocoaPods/CocoaPods/issues/7314
post_install do |pi|
    pi.pods_project.targets.each do |t|
        t.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '11.0'
        end
    end
end
##### 3.Cocoapods安装出现ERROR: Failed to build gem native extension.
解决办法  
修改这里
![image.png](https://img.haomeiwen.com/i4482059/8eeebf71155f47c2.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
上一篇 下一篇

猜你喜欢

热点阅读