CocoaPods 引用指定库操作

1.使用master分支
target 'MyApp' do
  use_frameworks!  
  pod 'LBXScan',git:'https://github.com/MxABC/LBXScan.git'
end
2.指定branch
target 'MyApp' do
 use_frameworks!  
 pod 'Reachability', :git => 'https://github.com/ashfurrow/Reachability.git', :branch => 'frameworks'
end
3.指定commit
target 'MyApp' do
 use_frameworks!  
 pod 'AFNetworking', :git => 'https://github.com/gowalla/AFNetworking.git', :commit => 'e976d63'
end 
3.使用本地库
target 'MyApp' do
 use_frameworks!  
 pod 'AFNetworking', :path => '~/Documents/AFNetworking'
end

你可能感兴趣的:(CocoaPods 引用指定库操作)