ios开发使用pod命令

2018-05-27  本文已影响0人  诗昭

1、终端,通过cd指令进入到项目的文件的目录中

如从我的个人目录进入到Xcode-project目录:

cd  Xcode-project

cd tryPod

2、在目录下生成profile文件,并复制如下内容

# Uncomment this line to define a global platform for your project

# platform :ios, '9.0'

target '项目名称' do

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

# use_frameworks!

pod "库名称"

# Pods for IOS_SqlLite

target '项目名称Tests' do

inherit! :search_paths

# Pods for testing

end

target '项目名称UITests' do

inherit! :search_paths

# Pods for testing

end

end

上一篇下一篇

猜你喜欢

热点阅读