You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Rostamm
3 months agoNew member | Level 2
Type 'DropboxClientsManager' has no member 'setupWithAppKey'
I'm running SwiftyDropbox version 10.1.0 on XCode 15.4 with a MacOS deployment target of 14.5.
When i copy and paste the code in the tutorial here:
https://dropbox.github.io/SwiftyDropbox/api-docs/latest/
I get an error:
SwiftyDropbox/DropboxClientsManager.swift:53: Precondition failed: Only call `DropboxClientsManager.setupWithAppKey` or `DropboxClientsManager.setupWithTeamAppKey` once
I have this setup per the documentation
DropboxClientsManager.setupWithAppKeyDesktop("<APP_KEY>")
So when i change it to .setupWithAppKey it gives me the error:
Type 'DropboxClientsManager' has no member 'setupWithAppKey'
Any help would be great
You don't have a problem what method is in use (as many times already, the error message is... erroneous 😂). Let's hope the message text will be fixed.
You have an issue though. The issue is that you have called some method (directly or indirectly) of Dropbox client manager before it gets initialized. The first thing you have to do is to initialize it before calling anything else. As seems you haven't followed this rule completely - that's what the message means.
Hope this gives direction.
- ЗдравкоLegendary | Level 20
You don't have a problem what method is in use (as many times already, the error message is... erroneous 😂). Let's hope the message text will be fixed.
You have an issue though. The issue is that you have called some method (directly or indirectly) of Dropbox client manager before it gets initialized. The first thing you have to do is to initialize it before calling anything else. As seems you haven't followed this rule completely - that's what the message means.
Hope this gives direction.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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 or Facebook.
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!