cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it 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: 

Migrating to Xcode 8 — SwiftlyDropbox error?

Migrating to Xcode 8 — SwiftlyDropbox error?

Perry F.
New member | Level 1

Hi all,

 

I've migrated a project to Xcode 8. I did the Swift 2.3 syntax conversion and ran a pod update on SwiftyDropbox.

I'm getting one error trying to compile. In the ViewController, on this line:

 

Dropbox.authorizeFromController(self) // initialize dropbox

 

It says "Missing argument for parameter 'controller' in call"

 

I'm a bit of a newbie in Swift here, and am having a hard time figuring out what is causing the problem.

 

Anyone else run into this?

1 Reply 1

Greg-DB
Dropbox Staff

Hi Perry, the authorizeFromController method was updated (to be extension-safe). You should call it like this now:

DropboxClientsManager.authorizeFromController(UIApplication.shared,
controller: self,
openURL: { (url: URL) -> Void in
UIApplication.shared.openURL(url)
})
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?