Learn how to make the most out of the Dropbox Community here 💙.
Forum Discussion
VyacheslavB
5 years agoHelpful | Level 5
I have a problem with connecting Dropbox API to my iOS app with Swift 5
Dropbox API documentation is in front of my eyes, I do everything as it is written there step by step. But in some of the methods that are indicated there are errors and I do not know what to replace...
- 5 years ago
You can manage your app's development user limit from the app's page on the App Console:
https://www.dropbox.com/developers/apps
You can use enable more user accounts to connect to your app by clicking the "Enable additional users" button, to avoid this error for now, or when ready, you can apply for production using the "Apply for production" button.
You can find more information on how this works here:
https://www.dropbox.com/developers/reference/developer-guide#production-approval
Greg-DB
Dropbox Staff
5 years agoI see you're getting the error "Unexpectedly found nil while unwrapping an Optional value" for that line, presumably regarding the "client" variable. This screenshot doesn't show where that variable would be set or unset, but this error indicates that its value is currently nil. Accordingly, attempting to force unwrap it as you are doing fails. You should instead check it is not nil before accessing it.
This isn't specific to Dropbox code though. You can find more information about this in the Swift documentation, or elsewhere, such as this post on StackOverflow.
VyacheslavB
5 years agoHelpful | Level 5
Thanks, I figured it out. I called the dropboxManager.fetchFiles () method when the user is not logged in.
There is another question, when I try to get the list of user's files the message appears
- Greg-DB5 years ago
Dropbox Staff
You can manage your app's development user limit from the app's page on the App Console:
https://www.dropbox.com/developers/apps
You can use enable more user accounts to connect to your app by clicking the "Enable additional users" button, to avoid this error for now, or when ready, you can apply for production using the "Apply for production" button.
You can find more information on how this works here:
https://www.dropbox.com/developers/reference/developer-guide#production-approval
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,965 PostsLatest Activity: 4 hours ago
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!