Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Henk Martijn L.
10 years agoNew member | Level 1
SwiftyDropbox crash while having a language other than English selected in account settings.
I have no problem testing SwiftyDropbox on my device when my Dropbox language on the site is set to English. But if I go to settings and change the language to Swedish or Dutch, the app crashes in getting the usersGetCurrentAccount() method, giving the following error:
precondition failed: "sv-SE" must be at most 2 characters: file /Users/HenkMac/Desktop/Xcode/BudEye Calendar/Pods/SwiftyDropbox/Source/BabelValidators.swift, line 5

I'm not sure if this happened before iOS9, but the only way to fix this at the moment is settings the language to English in the account settings of Dropbox.
4 Replies
Replies have been turned off for this discussion
- Henk Martijn L.10 years agoNew member | Level 1
English (United States) is the language which does not crash :)
I added a line to the method to just get the two first characters from the locale to get it working for now.
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks! This is a known issue that should be resolved in the next version of the SDK.
- Henk Martijn L.10 years agoNew member | Level 1
Perfect!
- Greg-DB10 years ago
Dropbox Community Moderator
To close the loop here, this was fixed in version 0.7.1.
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!