用Swift 5.1编译的模块不能由Swift 5.1.2编译器(couchbaselite)xcode 11.2导入

问题描述 投票:0回答:1

我在我的项目中使用了沙发床企业。将XCODE10.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错误。

还有其他解决方案可以摆脱这种情况吗?

ios couchbase couchbase-lite swift5.1 xcode11.2
1个回答
0
投票

错误意味着需要使用Xcode 11.2构建Couchbaselite框架。您无法更改应用中的设置以进行修复。因此,您可以选择[]

  • 等待发布将支持Xcode 11.2的Couchbase Lite或
  • 将您的Xcode版本降级为Xcode 11.1(与Couchbase Lite 2.6.1兼容的版本)。您可以从here
  • 下载以前版本的Xcode
© www.soinside.com 2019 - 2024. All rights reserved.