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];
}
}