我正在尝试通过 cocoapods 添加一个 pod,我使用的是 swift 3,而 pod( SQlite.swift)。
我正在尝试使用没有最新 swift 版本的大师,但是 swift 3 有一个分支。
那么我应该如何设置我的 podfile 来下载特定的分支呢?可能吗?
这是我的播客文件:
platform :ios, '10.0'
target 'RedShirt' do
use_frameworks!
# Pods for RedShirt
pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift.git'
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end