我正在使用 box-ios-sdk-v2 (v1.1.0),当我打电话时:
[[BoxCocoaSDK sharedSDK].foldersManager folderInfoWithID:BoxAPIFolderIDRoot
requestBuilder:nil
success:folderSuccess
failure:failure];
我得到一个断言失败:
*** Assertion failure in +[NSJSONSerialization ensureObjectForKey:inDictionary:hasExpectedType:nullAllowed:], ~/MyApp/Pods/box-ios-sdk-v2/BoxSDK/Categories/NSJSONSerialization+BoxAdditions.m:27
An uncaught exception was raised
+[NSJSONSerialization(BoxAdditions) ensureObjectForKey:inDictionary:hasExpectedType:nullAllowed:]: Unexpected JSON null when extracting key modified_at from dictionary {
"content_created_at" = "<null>";
"content_modified_at" = "<null>";
"created_at" = "<null>";
"created_by" = {
id = "";
login = "";
name = "";
type = user;
};
description = "";
etag = "<null>";
"folder_upload_email" = "<null>";
id = 0;
"item_collection" = {
entries = (
{
etag = 0;
id = 1092326452;
name = CSS;
"sequence_id" = 0;
type = folder;
},
{
etag = 1;
id = 680411078;
name = New;
"sequence_id" = 1;
type = folder;
},
{
etag = 2;
id = 8224096128;
name = ".apdisk";
"sequence_id" = 2;
sha1 = e8389b6e4307a798b0811cabc94144ce381b3312;
type = file;
}
);
limit = 100;
offset = 0;
order = (
{
by = type;
direction = ASC;
},
{
by = name;
direction = ASC;
}
);
"total_count" = 3;
};
"item_status" = active;
"modified_at" = "<null>";
"modified_by" = {
id = 181198661;
login = "grigutis@iu.edu";
name = "John Grigutis";
type = user;
};
name = "All Files";
"owned_by" = {
id = 181198661;
login = "grigutis@iu.edu";
name = "John Grigutis";
type = user;
};
parent = "<null>";
"path_collection" = {
entries = (
);
"total_count" = 0;
};
"purged_at" = "<null>";
"sequence_id" = "<null>";
"shared_link" = "<null>";
size = 289;
"trashed_at" = "<null>";
type = folder;
}
这是我的帐户(modified_at 真的不应该为空)还是 SDK 的问题?如果是我的帐户,我将如何解决?