我正在将我的iOS应用程序迁移到Xcode8和Swift 3。我更新了依赖关系版本,除了SQLite.swift之外,一切看起来都很好。在“导入SQLite”行的项目中,我有以下错误:
用SWIFT2.3编译的模块不能在SWIFT3.0.中导入
而我的目标是最新版本的SQLite.swift。我还为Pods项目下的Target "SQlite.swift“设置了”使用传统Swift语言版本“。知道我错过了什么吗?
我的荚文件看起来是这样的:
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发布于 2016-10-12 11:50:52
我认为0.10不支持斯威夫特3。
尝试在Podfile中使用下面的行
pod 'SQLite.swift', :git => 'https://github.com/stephencelis/SQLite.swift.git', :branch => 'master'发布于 2017-07-22 04:25:12
使用this.definatly工作我使用这个,对于我100%的工作
use_frameworks!
target 'YourAppTargetName' do
pod 'SQLite.swift', '~> 0.11.3'
endhttps://stackoverflow.com/questions/39997039
复制相似问题