Day Five Swift使用cocoapods与OC的不同

一、Swift
Swift中不允许静态库,所以要加上"use_frameworks!"


platform :ios, '8.0'
use_frameworks!
target '项目名称' do
pod 'AFNetworking'
pod 'SDWebImage'
pod 'SVProgressHUD'
end

二、OC


platform :ios, '8.0'

use_frameworks!

target '项目名称' do
pod 'AFNetworking'
pod 'SDWebImage'
pod 'SVProgressHUD'
end

你可能感兴趣的:(Day Five Swift使用cocoapods与OC的不同)