如何把cocopods 集成的第三方库改成静态库集成

直接上重点
以下 文件放在podfile 文件 最下方

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
      config.build_settings['MACH_O_TYPE'] = 'staticlib'
      config.build_settings['DYLIB_COMPATIBILITY_VERSION'] = ''
      config.build_settings['DYLIB_CURRENT_VERSION'] = ''
      config.build_settings['DYLIB_INSTALL_NAME_BASE'] = '$(INSTALL_PATH)'
    end
  end
end

你可能感兴趣的:(如何把cocopods 集成的第三方库改成静态库集成)