Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Perry F.
9 years agoNew member | Level 1
Migrating to Xcode 8 — SwiftlyDropbox error?
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
- Greg-DB9 years ago
Dropbox Community Moderator
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)
})
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!