嗨,我正在尝试使用cocoapods安装某些框架,当我运行“ pod install”时,它会安装swift 2.3框架,而swift 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


当我运行以上命令时,它总是会安装条码扫描器版本1.0.0,在swift 2.3中受支持。但是条形码扫描仪的最新版本是支持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/

10-14 21:42
查看更多