couchbase/couchbase-lite-ios

CocoaPods installation fails for CouchbaseLite-Swift

Alexandru981 opened this issue · 4 comments

Describe the bug
When trying to run pod install for the CouchbaseLite-Swift the operation fails do, most likely, to a private resource. This is happening for an iOS project which supports iOS 11 and up and is using Swift.

To Reproduce

  1. Add pod 'CouchbaseLite-Swift' to the Podfile
  2. Run pod install

Expected behavior
The pod install operation completes successfully.

Logs
Here is the cocoa pods log:

[!] Error installing CouchbaseLite-Swift
[!] /usr/bin/curl -f -L -o /var/folders/wk/45np229x1wv_9vy7jgs8_sdsk8hppr/T/d20201002-50762-slrcch/file.zip https://packages.couchbase.com/releases/couchbase-lite-ios/2.8.0/couchbase-lite-swift_community_2.8.0.zip --create-dirs --netrc-optional --retry 2

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 403

Platform (please complete the following information):

  • Device: iPhones and iPad
  • OS: iOS11 and up
  • Couchbase Version CouchbaseLiteSwift 2.7.0
pasin commented

It's weird that it tried to download 2.8 version which is not available yet.

Could you please specify the exact version for now?

target '<target>' do
  use_frameworks!

  pod 'CouchbaseLite-Swift', "~> 2.7.1"

end

Closing this, feel free to reopen if you are facing it again.

Thanks @jayahariv !

It seems to be fixed now.

I was indeed using 2.7.1:

pod 'CouchbaseLite-Swift', "~> 2.7.1"

yea, the issue got resolved by updating the Cocoapod specs.