require 'cocoapods-hd/command' require 'cocoapods' module Hd # 注册 pod install 钩子 Pod::HooksManager.register('cocoapods-hd', :post_install) do |context| Pod::UI.puts 'hello world ---' end end