标签:
参考文:http://www.cocoachina.com/swift/20150630/12305.html
1、首先你需要安装CocoaPods。幸运的是,CocoaPods被建立在Ruby上,而最近的Mac OS X版本带有Ruby。这自从OS X 10.7之后就实现了。
打开终端并且输入以下命令行:
sudo gem install cocoapods
在终端输入以下命令行来完成设置:
# Uncomment this line to define a global platform for your project
# platform :ios, ‘6.0‘
target
‘IceCreamShop‘
do
end
target
‘IceCreamShopTests‘
do
end
platform :ios,
"8.0"
use_frameworks!
pod
‘MBProgressHUD‘
,
‘~> 0.9.0‘
platform :ios, "8.0"
use_frameworks!
target ‘mySwift‘ do
pod ‘MBProgressHUD‘, ‘~> 0.9.0‘
end
target ‘mySwiftTests‘ do
end
6、下载库文件(第一次相当慢)
pod install
7、使用workspace文件打开工程
标签:
原文地址:http://www.cnblogs.com/swallow37/p/4738534.html