I just got my Xcode updated to Xcode 11. But I am not able to build my project as it’s giving the error mentioned below
Module compiled with Swift 5.0.1 cannot be imported by the Swift 5.1 compiler: /Xcode Projects/DigiRecords/drlitenative/Pods/CouchbaseLite-Swift-Enterprise/iOS/CouchbaseLiteSwift.framework/Modules/CouchbaseLiteSwift.swiftmodule/arm64.swiftmodule
When will there be a update in the sdk? As I can’t build the project, I can’t continue my work.
Only hint I can offer is from looking in my local commit history. On Sept 10 I tried to pod update and was still getting 2.5, so I switched to a locally compiled framework. Either way, that’s old news and I’m looking forward to seeing the 2.6.x / Swift 5.1 framework later this week.
Another year has passed, got a new Xcode and a new Swift version. Can we get a repo bump again please?
Failed to build module ‘CouchbaseLiteSwift’ from its module interface; the compiler that produced it, ‘Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)’, may have used features that aren’t supported by this compiler, 'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
Any chance of getting Swift Package Manager support?
I have validated the Xcode 12.0.1 and CouchbaseLiteSwift 2.7.1, using the binary from downloads. Can you explain the steps that cause the issue(explain in a way I can also reproduce the issue) ?
Sorry, been away for the weekend. Just checked today, and I see the CocoaPods repo has been updated to 2.7.1. Thanks!
Edit:
The downloadable copy on couchbase.com was compiled with Swift 5.3 and indeed works perfectly.
Unfortunately, it appears CBLSwift 2.7.1 uploaded to the CocoaPods repo was still compiled with the old version of Swift (5.2.2) instead of the 5.3 version packaged with Xcode 12.0.x
failed to build module 'CouchbaseLiteSwift' from its module interface; the compiler that produced it, 'Apple Swift version 5.2.2 (swiftlang-1103.0.32.6 clang-1103.0.32.51)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3 (swiftlang-1200.0.29.2 clang-1200.0.30.1)
I have created a simple project with the below Podfile, and projects works fine
TestCocoapod 10:39:11 $ pod install
Analyzing dependencies
Downloading dependencies
Installing CouchbaseLite-Swift (2.7.1)
Removing CouchbaseLite-Swift-Enterprise
Generating Pods project
Integrating client project
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
[!] Automatically assigning platform `iOS` with version `14.0` on target `TestCocoapod` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
TestCocoapod 10:39:20 $
TestCocoapod 10:39:20 $ open TestCocoapod.xcworkspace
TestCocoapod 10:39:25 $ cat Podfile
target 'TestCocoapod' do
use_frameworks!
pod 'CouchbaseLite-Swift'
end
TestCocoapod 10:41:02 $ xcodebuild -version
Xcode 12.0.1
Build version 12A7300