IOS 项目如何创建、添加、更新Pods。

1. 新建工程 PodTest

2. 打开终端,cd到 PodTest 根目录

3. 在终端输入 "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


4.在终端输入 "pod install",等待下载完成。

5. 回到工程目录,双击“PosTest.xcworkspace”进入程序

6.如果要添加开源库,可以直接在Podfile这个文件添加,然后在执行 pod update 指令,就可以了。

你可能感兴趣的:(IOS 项目如何创建、添加、更新Pods。)