ios - pod 安装 swift 2.3 框架而不是 swift 3 代码

标签 ios swift3 cocoapods

您好,我正在尝试使用 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/

相关文章:

objective-c - 选择器没有已知的类方法 'defaultStore'

ios - 如何从 Swift 3 中的全局类更新 UIViewController 中的组件?

swift3 - 第一次运行时在自定义相册中保存照片失败

objective-c - 此 bundle 无效 - 文件扩展名必须是 .zip

c - 如何阻止 Cocoapods 导入保护伞中的私有(private) header

ios - 新的 Xcode UIViewControllerRepresentables 必须是模拟器的值类型而不是真实设备

ios - 为什么此 Objective-C 代码会触发错误购买跟踪

ios - 如何录制speex格式的音频文件?

swift3 - 通过 XCTest UI 测试的 MKAnnotation

cocoapods - Podfile 没有下载最新版本的 pod