cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SwiftyDropbox with Alamofire issue

SwiftyDropbox with Alamofire issue

DS6
Explorer | Level 4
Go to solution

I have Alamofire ~>4.7 setting in pod file and when adding line 'pod SwiftyDropbox', there is an issue I see when I run pod update:

 

     

Analyzing dependencies

[!] CocoaPods could not find compatible versions for pod "Alamofire":

  In Podfile:

    Alamofire (~> 4.7)

 

    SwiftyDropbox was resolved to 2.0.1, which depends on

      Alamofire (~> 2.0.2)

 

How do I get the latest version of Swiftydropbox to run?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

SwiftyDropbox has been updated for Swift 4 as of v5.0.0.

View solution in original post

4 Replies 4

Greg-DB
Dropbox Staff
Go to solution

[Cross-linking for reference: https://stackoverflow.com/questions/52295762/swiftydropbox-with-alamofire-issue ]

Your Cocoapods installation is reporting that SwiftyDropbox is currently resolving to v2.0.1, but that's actually a somewhat old version. The latest release is v4.6.0.

The current version of SwiftyDropbox specifies Alamofire v4.5.0.

It sounds like your Cocoapods repo may be out of date. Try running `pod repo update` first. 

DS6
Explorer | Level 4
Go to solution

pod repo update didn't help. The only way to fix it was to downgrade Alamofire version to 4.5.1. But this version gives 1 warning and SwiftyDropbox has 3 warnings:

 

     " Using '!' in this location is deprecated and will be removed in a future release; consider changing this to '?' instead"

   "'characters' is deprecated: Please use String or Substring directly"

Is there a clean version that uses Swift 4?

 

 

Greg-DB
Dropbox Staff
Go to solution

SwiftyDropbox hasn't been updated for Swift 4, but I'll pass this along as a request to the team. 

Greg-DB
Dropbox Staff
Go to solution

SwiftyDropbox has been updated for Swift 4 as of v5.0.0.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    DS6 Explorer | Level 4
What do Dropbox user levels mean?