美文网首页
【CocoaPods】常见问题记录

【CocoaPods】常见问题记录

作者: BeethOven | 来源:发表于2021-09-28 14:11 被阅读0次
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)

相关文章

网友评论

      本文标题:【CocoaPods】常见问题记录

      本文链接:https://www.haomeiwen.com/subject/rixrnltx.html