You are trying to access an obsolete Developer Preview version of 2.0.0 release . 2.0.0 went GA over a year ago .
Please follow instructions in our docs to download the latest version. Not sure where you got the above instructions from.
target 'Example' do
use_frameworks!
pod 'CouchbaseLite-Swift-Enterprise', '~> 2.1.6'
end
~/projects/temp/temp | => cat Podfile
target 'temp' do
use_frameworks!
pod 'CouchbaseLite-Swift-Enterprise', '~> 2.1.6'
end
~/projects/temp/temp | => pod install
Analyzing dependencies
Downloading dependencies
Using CouchbaseLite-Swift-Enterprise (2.1.6)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.
Oh ok, I am not sure i tried multiple times, it says Unable to find a specification for CouchbaseLite-Swift-Enterprise (~> 2.1.6)
Is there any other way?
The steps you are following for linking the framework manually are incorrect. You don’t need a bridging header if you are linking a swift framework with a swift project. Please follow instructions in docs (look under “Frameworks” tab)
Yes sure, thank you. As you mentioned, i already followed that for framework integration manually. Sorry that i didn’t mention properly earlier.
The error i face is,
Module compiled with Swift 5.0 cannot be imported by the Swift 4.2.1 compiler: CouchbaseLiteSwift.framework/Modules/CouchbaseLiteSwift.swiftmodule/x86_64.swiftmodule
then, i found that i need to have Xcode 10.2 for this. But, we are not allowed to work on 10.2 for now, we can work on 10.1.
Well, you certainly missed that key error message in your previous posts. And I got that you did manual- my point was you had not followed the instructions correctly.
Yes, as indicated in the error, you would need swift 5. If you need something compatible with earlier versions of swift, then you can pull down one of the previous releases (2.1.3 should be swift 4 compatible)
target 'temp' do
use_frameworks!
pod 'CouchbaseLite-Swift-Enterprise', '2.1.3'
end