升级私有库时,MBProgressHUD中的build setting中的iOS deployment target会变成4.3

原因:pod update is setting the deployment target of the pod to iOS 4.3 because that is the default deployment target if the podspec doesn't specify one. This was an intentional decision by the CocoaPods team, even though it breaks some older pods that basically have an incomplete podspec. If you are maintaining the pod, you should specify an appropriate target, e.g. platform :ios, '8.0' to fix it. If you are just trying to use a pod that is broken in this way, please try my suggestion below

大致意思是MBProgressHUD中没有在podspec中设置默认的default deployment target

解决方案有两种:

       第一种:

升级MBProgressHUD

        第二种:

       在podfile后面添加如下暴力代码:

post_install do |installer|

  installer.pods_project.targets.each do |target|

    target.build_configurations.each do |config|

      config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.2'

    end

  end

end

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 经常使用CocoaPods来管理iOS项目中的第三方库,但是我们要使用CocoaPods来管理第三方库,前提是要写...
    qitianjin阅读 5,180评论 2 0
  • 转载自:http://blog.csdn.net/qitianjin/article/details/517738...
    YYT1992阅读 7,561评论 0 0
  • 项目组件化、平台化是技术公司的共同目标,越来越多的技术公司推崇使用pod管理第三方库以及私有组件,一方面使项目架构...
    swu_luo阅读 22,561评论 0 39
  • 天猫淘宝去年双十一搞出的预售订金!不搞折扣、降价,反而把货品价格人为分成订金和尾款,订金小头。提前付订金,订金可以...
    念美美阅读 2,875评论 0 1
  • 这里的天气阴晴不定你给的感动和温暖姗姗来迟又恰到好处 南方的秋天凉意起落叶在空中打着旋儿好像爱你又多了一点点 熙攘...
    齐希阅读 4,191评论 14 11