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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,486评论 0 10
  • 思伊 怀春 花开一年来, 长江滚滚闲人在, 秋悦半年去。 人心...
    椿______阅读 191评论 0 0
  • 你微微笑着,并未言语,但我觉得,为此我已等候很久。
    笙以默阅读 175评论 0 0
  • 1. object类型 1.1 创建方式 第一种是使用new 操作符后跟Object 构造函数 第二种是 对象字面...
    大小伍阅读 339评论 0 0