Thanks for the suggestion. I'm only using a single user.
I _think_ this is related to using the simulator for debugging, but I'm not sure. Tracing through the code on a brand-new reset simulator finds two entries already in the keychain. These are what are screwing things up.
Things seem to work fine on a device.
I have patched in a workaround in my local copy of the SwiftyDropbox code. This workaround is entirely unsuitable for submission, but it's gotten me unblocked.
Did you previously try out the Swift SDK in the simulator? That would explain having entries already in the keychain. I'm not sure why they wouldn't be deleted when resetting the simulator though... that's odd.
You can always use `Dropbox.unlinkClient()` in your code to clear the credentials.
This shouldn't affect running the code on a device or with other users.
Thanks for your response. I've tried resetting and unlinkClient(). Neither one helps the situation. I have a sneaky suspicion that it has something to do with the particular machine that I'm on, because it seems to all work on my laptop (but not my desktop). My suspicion is that the data in my desktop's keychain is interfering with the responses in the simulator. Some of the stuff that I've read (in StackOverflow for e.g.) suggests that keychain is broken in the simulator.
I'll play with it a little and see if I can repro on my laptop. Then I'll have some instructions for y'all.
Reply if you find out anything new... it would be super helpful!
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?