我正在将我的 iOS 应用程序迁移到 Xcode8 和 Swift 3。我更新了依赖项版本,除了 SQLite.swift 之外,一切看起来都很好。在我的“import SQLite”行的项目中,我有这个错误:
“使用 Swift 2.3 编译的模块无法导入 Swift 3.0 ... ”
而我的目标是最新版本的 SQLite.swift。对于 Pods 项目下的目标“SQlite.swift”,我还将“使用旧版 Swift 语言版本”设置为“是”。知道我缺少什么吗?
我的 pod 文件如下所示:
platform :ios, '8.0'
use_frameworks!
target 'XYZ' do
pod 'OAuthSwift', '~> 1.0.0'
pod 'SwiftyJSON', '~> 3.1.1'
pod 'SQLite.swift', '~> 0.10.1'
pod 'Fabric', '~> 1.6.9'
pod 'Crashlytics', '~> 3.8.2'
pod 'PagingMenuController', '~> 1.4.0' #2.0.0 require iOS9+
pod 'SDWebImage/WebP', '~> 4.0.0-beta2'
pod 'ReachabilitySwift', '~> 3'
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