We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Rostamm's avatar
Rostamm
New member | Level 2
3 months ago

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.

  • 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

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 45 minutes ago
325 Following

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 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!