CocoaPod 使用指南
CocoaPod 是iOS开发中用来管理第三方插件的工具。
在 Terminal 中输入:
sudo gem install cocoapods pod setup --verbose
# Uncomment the next line to define a global platform for your project # platform :ios, '系统版本号' target '你的工程名' do # Comment the next line if you’re not using Swift and don’t want to use dynamic frameworks use_frameworks! # Pods pod '插件名', '~> 版本号' pod '插件名' end在 Terminal 中进入相应工程目录并输入:
pod install此时插件安装完成,打开.xcworkspace 后缀工程文件便可使用插件进行下一步开发
pod update添加插件
pod install