swift 5.0 升级 ,指定pod库设置SWIFT_VERSION和IPHONEOS_DEPLOYMENT_TARGET


post_install do |installer|

    installer.pods_project.targets.each do |target|

      

      if ['JXPhotoBrowser'].include? target.name

            target.build_configurations.each do |config|

              config.build_settings['SWIFT_VERSION'] = '4.0'

              config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'

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

            end

      else

            target.build_configurations.each do |config|

              config.build_settings['SWIFT_VERSION'] = '5.0'

              config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'

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

            end

      end

    end

end




Loading Disqus comments...
Table of Contents