您好,我正在尝试使用 cocoapods 安装一些框架,当我运行“pod install”时,它会安装 swift 3 不支持的 swift 2.3 框架
例如
# platform :ios, '9.0'
pod 'BarcodeScanner'
target 'WhiskyBazar' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for WhiskyBazar
target 'WhiskyBazarTests' do
inherit! :search_paths
# Pods for testing
end
target 'WhiskyBazarUITests' do
inherit! :search_paths
# Pods for testing
end
end
当我运行上面的代码时,它总是安装 swift 2.3 支持的条码扫描器版本 1.0.0。但是最新版本的条码扫描器是支持swift 3的条码扫描器2.0.0。请告知我必须在我的项目中进行哪些更改才能安装支持swift 3.0的最新版本的pod
最佳答案
你应该尝试
pod 'BarcodeScanner', '~> 2.0'
关于ios - pod 安装 swift 2.3 框架而不是 swift 3 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42247203/