我在我的项目中使用了沙发床企业。将XCODE从10.3升级到11.2后,收到此错误消息。 (使用Swift 5.1编译的模块不能由Swift 5.1.2编译器导入)
我的podfile是这样的:
# 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
我尝试过以下解决方案,但没有任何区别。在XCODE中更改
BUILD_LIBRARY_FOR_DISTRIBUTION = YES;
Module compiled with Swift 5.1 cannot be imported by the Swift 5.1.2 compiler
我也尝试构建(couchbaselite)框架文件,如此处https://github.com/couchbase/couchbase-lite-ios#how-to-build-the-framework-files所述
但是我遇到了BUILD_FAILED
错误。
还有其他解决方案可以摆脱这种情况吗?
错误意味着需要使用Xcode 11.2构建Couchbaselite框架。您无法更改应用中的设置以进行修复。因此,您可以选择[]