Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Rostamm
2 years 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.
1 Reply
- Здравко2 years agoLegendary | 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.
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!