xcode工程添加podfile文件

1.终端进入项目的工程文件下 。

2.yetaotekiMac-mini:TestDemo yetao$ 

pod init

会在项目下自动建立

Podfile文件。内容

# Uncomment the next line to define a global platform for your project

# platform :ios, '9.0'

target 'TestDemo' do

  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks

  # use_frameworks!

  # Pods for TestDemo

end

3.项目添加配置第三方库:

yetaotekiMac-mini:TestDemo yetao$

pod search ‘AFNetworking'

4.添加依赖

# Uncomment the next line to define a global platform for your project

# platform :ios, '9.0'

target 'TestDemo' do

  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks

  # use_frameworks!

  # Pods for TestDemo

pod 'SDWebImage', '~> 3.8.1'

pod 'AFNetworking', '~> 3.1.0'

pod 'MJExtension'

pod 'LFLiveKit'

pod 'YYKit'

pod 'Masonry'

end

5.导入第三方库 

yetaotekiMac-mini:TestDemo yetao$ 

pod install

你可能感兴趣的:(xcode工程添加podfile文件)