I use Kanna and Reachability libraries. And seems they already migrated to swift 3. I use Cocoapods:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'MyProj' do
pod 'Kanna', '~> 2.0.0'
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
Got error when do import:
import Kanna
import ReachabilitySwift
Module compiled with Swift 2.3 cannot be imported in Swift 3.0
Flag: Use legacy swift versions
everywhere set to No