【发布时间】:2017-02-17 05:53:14
【问题描述】:
我正在尝试通过 cocoapods 添加一个 pod,我使用的是 swift 3,而 pod(SQlite.swift)。
我正在尝试使用没有最新 swift 版本的大师,但是有一个 branch 用于 swift 3。
那么我应该如何设置我的 podfile 来下载特定的分支呢?有可能吗?
这是我的 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
【问题讨论】:
标签: xcode git cocoapods podfile