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-122.214.171.124 clang-1126.96.36.199)’, may have used features that aren’t supported by this compiler, 'Apple Swift version 5.3 (swiftlang-1188.8.131.52 clang-1184.108.40.206)
Any chance of getting Swift Package Manager support?
Sorry, been away for the weekend. Just checked today, and I see the CocoaPods repo has been updated to 2.7.1. Thanks!
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-1220.127.116.11 clang-118.104.22.168)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.3 (swiftlang-122.214.171.124 clang-1126.96.36.199)
I have created a simple project with the below Podfile, and projects works fine
TestCocoapod 10:39:11 $ pod install
Installing CouchbaseLite-Swift (2.7.1)
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
TestCocoapod 10:41:02 $ xcodebuild -version
Build version 12A7300