I am using couchbaselite enterprise in my project. After I upgraded XCODE from 10.3 to 11.2, I got this error message. (Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler)
my podfile is like this:
# Uncomment the next line to define a global platform for your project
# platform :ios, '11'
target 'Imece' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'SwiftyJSON', '~> 4.2'
pod 'FSCalendar', '~> 2.7.9'
pod 'CouchbaseLite-Swift-Enterprise', '~> 2.6.1'
pod 'Alamofire'
end
I tried below solution bu it did not make any difference. in XCODE change
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler
I also tried build the (couchbaselite) framework files as mentioned here
https://github.com/couchbase/couchbase-lite-ios#how-to-build-the-framework-files
But I got BUILD_FAILED
error.
Is there any other solution to get rid of this situation?