No commit activity in last 3 years
No release in over 3 years
This plugin modifies HEADER_SEARCH_PATHS in Pods/Target Support Files/*/*.xcconfig replacing ${PODS_ROOT}/Headers/Public/* with a single hmap to speed up compilation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

cocoapods-hmap-simple plugin

本插件对Pods/Target Support Files/*/*.xcconfig 中的 HEADER_SEARCH_PATHS 进行精简:将 "${PODS_ROOT}/Headers/Public/*" 合并为一个 hmap 文件。(不包括 ${PODS_ROOT}/Headers/Public 本身)

前后对比:

对于使用大量 Pod 的项目的编译性能有提升,对于简单项目区别极小。

https://github.com/milend/hmap

$ hmap print Pods/Headers/hmap/e7b40053fb8fd961c29a9876ca5205e0.hmap
WBHttpRequest.h -> /Users/foo/Example/Pods/Headers/Public/Weibo_SDK/WBHttpRequest.h
WeiboSDK.h -> /Users/foo/Example/Pods/Headers/Public/Weibo_SDK/WeiboSDK.h

使用

  1. 添加 cocoapods-hmap-simple
  2. Gemfile 添加 gem 'cocoapods-hmap-simple', :path => 'cocoapods-hmap-simple'

tree

cocoapods-hmap-simple
├── cocoapods-hmap-simple.gemspec
└── lib
    ├── cocoapods_plugin.rb
    ├── hmap                    (https://github.com/milend/hmap)
    └── hmap_optimize.rb        (hmap generating and injecting)