美文网首页
CocoaPods 引用指定库操作

CocoaPods 引用指定库操作

作者: AryCode | 来源:发表于2020-11-11 15:04 被阅读0次
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 引用指定库操作

      本文链接:https://www.haomeiwen.com/subject/kkiebktx.html