Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Kathy L.'s avatar
Kathy L.
New member | Level 2
11 years ago

Simulator suddenly crashing on DBFileSystem

I'm using the newest IOS SDK for the Sync API. All of a sudden I'm getting a EXE_BAD_ACCESS when trying to assign the DBFileSystem as follows: (crashes on DBFilesystem *filesystem = [[DBFilesystem alloc] initWithAccount:account];). I'm using Xcode 6.1 and both the 71 and 8.1 simulators are crashing.

DBAccountManager *accountMgr =
[[DBAccountManager alloc] initWithAppKey:appKey secret:appSecret];
if (accountMgr) {
    [DBAccountManager setSharedManager:accountMgr];

    // Set up main linked account
    int nAccounts = [[accountMgr linkedAccounts] count];
    if (nAccounts > 0) {
        DBAccount *account = [[accountMgr linkedAccounts] objectAtIndex:0];
        if (account) {
            DBFilesystem *filesystem = [[DBFilesystem alloc] initWithAccount:account];                
        }
    }

19 Replies

Replies have been turned off for this discussion

About Dropbox API Support & Feedback

Node avatar for 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!