cocoaPods的实现

一.

pod install的pod是什么?

~ file which pod
/usr/local/bin/pod: a /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby script text executable, ASCII text

拖到sublim text

#!/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'cocoapods' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require 'rubygems'

version = ">= 0.a"

str = ARGV.first
if str
  str = str.b[/\A_(.*)_\z/, 1]
  if str and Gem::Version.correct?(str)
    version = str
    ARGV.shift
  end
end

if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('cocoapods', 'pod', version)
else
gem "cocoapods", version
load Gem.bin_path("cocoapods", "pod", version)
end

你可能感兴趣的:(cocoaPods的实现)